Open fenilsuchak opened 6 years ago
You can use my fork, I already implemented this logic. But for now it is only avaliable to CSV parser, so you will need convert your xml files into CSV file, and for add images without objects write like this in CSV file:
filePath,,,,,,
@rodrigo2019 alright I'll try your fork. But isn't this some very basic thing?. There must be a way do to do so, in here, right?
I think so, I don't remeber exactly what I changed
In preprocessing.py line55: if len(img['object']) > 0: #disable the checking
You can use my fork, I already implemented this logic. But for now it is only avaliable to CSV parser, so you will need convert your xml files into CSV file, and for add images without objects write like this in CSV file:
filePath,,,,,,
@rodrigo2019 how to transfer the xml to csv file?
I didn't any kind of script to do this job, sorry
I didn't any kind of script to do this job, sorry
@rodrigo2019 i write a script transfer xml to csv and use your fork,feed the image as the csv file,first line is picture with object and secondly is a picture without object `1.jpg,74,117,14,57,dog
2.jpg,,,,,`
However,i got this error:
File "/home/new_yolo/keras-yolo/frontend.py", line 492, in evaluate all_annotations[i][label] = annotations[annotations[:, 4] == label, :4].copy() IndexError: index 4 is out of bounds for axis 1 with size 0
thank you for your fork and thank you for your help
Looks you are using a older version from my fork, because this line actually is the line 500
Looks you are using a older version from my fork, because this line actually is the line 500
@rodrigo2019 i use the new master,the same error for me
How do I feed in images where in no object is present. I have an xml file with filename and size of image, but no "object" xml tag. Feeding in data with no objects is also important for my task. Any Idea how to do it?
Thanks