Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to read existing xml files (create_annoset.py), Why?!! #7

Open
MyVanitar opened this issue Feb 11, 2017 · 4 comments
Open

Unable to read existing xml files (create_annoset.py), Why?!! #7

MyVanitar opened this issue Feb 11, 2017 · 4 comments

Comments

@MyVanitar
Copy link

MyVanitar commented Feb 11, 2017

When I run the create_lmdbdata.sh, I get two errors related to the .xml files in train and test folders.

it says:

annotation file: /home/hesam/Desktop/img/val/annot/0269.xml does not exist
annotation file: /home/hesam/Desktop/img/train/annot/0156.xml does not exist

These paths are exist in first lines of trainval.txt and test.txt. it means the program stuck in the first line.

The error comes from the create_annoset.py file and it seems it does not recognize .xml files.

It seems it does not have any problem with .jpg files.

But both paths are correct and files are exist there. Why I get this error?! very strange :-(

@HongyiDuanmu26
Copy link

Did you solve it? I got the same problem with you.

@MyVanitar
Copy link
Author

if the path are correct (make sure), then the problem is that the xmls are generated in the Windows and windows uses different mechanism for txt files. you can convert all to the Linux format but now I can not remember its command but you can find in the search easily

@HongyiDuanmu26
Copy link

Thank you so much for your reply! Yes that’s the reason and I solved it. I generated the txt in windows and they have different mechanisms for \r or \n. In windows and Linux.
Thank you again!

@MyVanitar
Copy link
Author

Bingo :-) You're welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants