experiencor / keras-yolo3

Training and Detecting Objects with YOLO3
MIT License
1.6k stars 862 forks source link

(predict problem ) shows nothing in the created "output" file #119

Open qwertad opened 6 years ago

qwertad commented 6 years ago

After training with my own data, I ran the model with predict.py. Then I saw a file created which named "output", but there's no image in it. While it works when running with RBC data. My question is that, why it shows nothing in the created "output" file, even without labeling? And how to fix it i have try use -o but it doesn't work This is my cmd screenshot after run predict.py image

And this is cfg file i use image

JuanSeBestia commented 6 years ago

x2 but I use Ubuntu

AlexBlack2202 commented 6 years ago

if IMG_2756 is directory, you must add slash (/) after directory name. Ex "python predict.py -c config.json IMG_2756/", and you must create directory IMG_2756 in 'output' directory before call predict command.

bostankhan6 commented 4 years ago

I am having the same problem. Can someone solve this issue?

LoFe commented 4 years ago

I am having the same problem. Can someone solve this issue?

I found that my input images are not loaded at all. The reason was that the files have '.JPG' extension while the code is only collecting lower case jpg (it is case sensitive). As a quick fix you can add your extension to the list here: https://github.com/experiencor/keras-yolo3/blob/768c524f277adbfd26c2f44d73cb1826bbaf2d10/predict.py#L109