-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug for filep and dirp function #6
Comments
if you give a sample snippet of code (10 lines or less), i'll correct it. |
Thankfully, the major part of this problem can be represented in about 10 lines
Thx~ |
well, you have to do: paths.filep( paths.concat(current_dir, list[i])) |
Really surprised and appreciated for your answer in maybe midnight.
I guess |
Here's a corrected gist. It works for me. Here's the output given torch7 as the dir:
|
Thanks, soumith. The usage of absolute path and relative path is the cause for this problem. More specifically, several details should be written here for others:
|
My proposed to check image files exist in specific directory and probably in sub directory of the input directory.
However, both
filep
anddirp
returnfalse
when my code called them.The only way for return
true
is that I change directory to destination directory and useth
to calltrepl
and callfilep
anddirp
.I've checked the document in repo and it doesn't give me enough information to figure out this.
Anyone has any ideas or hints?
Thanks~
The text was updated successfully, but these errors were encountered: