abhishekrana / DeepFashion

Apparel detection using deep learning
Apache License 2.0
256 stars 78 forks source link

Issues in dataset_create.py #7

Open jing199301 opened 6 years ago

jing199301 commented 6 years ago

Hi, Recently I download your script and it works (Training set includes ['coat', 'kaftan', 'robe']). But when I add ['Chino'] in the training set, and run dataset_create.py, it will meet a problem. It will stop at a certain image and display an error. xnip2018-06-08_00-29-36 xnip2018-06-08_00-29-54

I will meet the same problem if I add ['Jeans'] to the training set. xnip2018-06-08_09-38-42

It seems some certain images will cause this issue. I don't know if I should do some changes to the ‘crop function’. I think I need your help. Thanks a lot!

hassanmasood1 commented 6 years ago

I am having the same issue, for img_0000009.jpg inside Faux_leather-Trim_Blouse folder. And I am guessing its resolution is very smaller compared to other images in the folder. box_error

jing199301 commented 6 years ago

I think so. So I wonder how to modify the 'crop function'?

hassanmasood1 commented 6 years ago

The issue is, selective_search is recommending boxes with 0 widths/height. To fix it just add the following code to selective_search.py and it should fix the issue.

image