You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This probably means that the width, height = Im.size line inside the for filename in FileList: line is never getting run (which probably means that the whole for block isn't happening.
Add some print lines above this to see what's empty. My money would be on FileList being an empty array, which probably means something is up with your directory structure.
@bemoregt
This happens because youre not on a MAC, hence, the DS_Store file doesn't exist and you're probably trying with only on image per directory. Try this:
for dirname in os.listdir(name[0]): # [1:] Excludes .DS_Store from Mac OS here it's removed. instead of : for dirname in os.listdir(name[0])[1:]:
Hi, @gskielian @vianamp
I have met this error
NameError: name 'width' is not defined
What's wrong with me?
Thanks in advance.
from @bemoregt.
The text was updated successfully, but these errors were encountered: