mAP icon indicating copy to clipboard operation
mAP copied to clipboard

Error: File ground-truth/1.txt in the wrong format.

Open manikantarav opened this issue 5 years ago • 2 comments

after running python main.py, i get this error. ##################################### Error: File ground-truth/1.txt in the wrong format. Expected: <class_name> ['difficult'] Received:

If you have a <class_name> with spaces between words you should remove them by running the script "remove_space.py" or "rename_class.py" in the "extra/" folder. ######################################################## I couldnot find out what is wrong with my ground truth files . iam attaching one of gt file here, can you check and reach out back here. 1.txt

Regards, V Manikanta Raju

manikantarav avatar Mar 14 '19 05:03 manikantarav

image

Hello, so the problem is that you have an empty line in the end as you can see in the image. I will make my code robust to this so that it won't happen again!

Cartucho avatar Mar 19 '19 09:03 Cartucho

Could you please tell me how to solve this problem? I have been looking for a long time without finding a solution.

ZhengHeZhe avatar Dec 09 '19 12:12 ZhengHeZhe