Open rawat123 opened 6 years ago
Hi, it's throwing you an exception:
Exception reading image file: positive.txt
Line 145 (aprox) from prep.py.
Maybe because you deleted all the content inside "positive" folder. Try to restore original positive.txt and vecfile.vec.
I think it creates those file. like 'prep.py neg' it creates negative.txt in "negative" folder and after executing 'prep.py pos' it creates a positive.txt in positive folder but files was empty
Yep, I've just tested it and created those files and worked for me. Also, it should not reach that exception as in line 134 continues with the next iteration of the loop if extension is .txt. Check correct indentation. Try/except (line 136) must be inside for loop (line 130).
Hi, OS: windows 10 I am trying to train for Indian number plates, and I have some image in positive directory. indian license plate standard is 500 120 mm, so I created a 500 120 mm image and in pixels it converts to 1417*340 px.
I run the 'prep.py neg' and it counts all files as it creates a negative.txt in negative directory and there are all negative files are listed.
I tried running 'prep.py pos' and there was 40 images in my folder 'in'(country code) and positive directory was empty before running the command and after executing the 'prep.py pos' command all files got copied from 'in' folder to 'positive' folder and output of the command is below.
and positive.txt file was empty. please help.