Closed SeaCelo closed 3 years ago
I also had to make the same change in the file "align_warp_back_multiple_dlib.py":
Line ~368:
f_list = [f for f in os.listdir(origin_url) if not f.startswith('.')]
#for x in os.listdir(origin_url) :
for x in f_list :
Hi, it seems that the input folder contains some hidden files which don't belong to PNG/JPEG. Adding extra checking for the input files will be fine.
Feel free to re-open this issue if there is still any problem.
I was puzzled why I could only process one file at a time. Using a Mac, I also got in the habit of deleting the .DS_Store files before each run to avoid the error:
Deleting the hidden file allowed me to process a single image (as long as the size < 1350px). It occurred to me that .DS_Store files were being recreated during the run of the script.
I made the following changes:
In test.py, (line 110):
In detection.py (line 102):
I was then able to run multiple image files and get results. I'm not sure if the problem occurs in other parts of the code.