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

All values are zero in .xml file #8

Open
Berkay1735 opened this issue Oct 4, 2020 · 5 comments
Open

All values are zero in .xml file #8

Berkay1735 opened this issue Oct 4, 2020 · 5 comments

Comments

@Berkay1735
Copy link

Hi,

I used your code before without any problem. Now, I got zeros in .xml files.
Note: I used this command:
python yolo2pascal/yolo2voc.py demo/yolo2pascal
run with anaconda (pyhon 3.8.3)

cat_xml

@hai-h-nguyen
Copy link
Owner

Can you try again, I just revert the previous merge?

@Berkay1735
Copy link
Author

Unfortunately, It did not work. I run code on Google Colab, it worked correctly.

@xioyodd
Copy link

xioyodd commented Oct 20, 2020

same problem

@hai-h-nguyen
Copy link
Owner

hai-h-nguyen commented Oct 20, 2020

@xioyodd I think I fixed the bug, can you check again? Please mind the path printing out and check if they are correct.

@kdh3071
Copy link

kdh3071 commented Nov 3, 2020

I changed with opencv.
yolo2voc.py
line 21,22
image=cv2.imread(imagePath)
imageShape=list(image.shape)
yolo_io.py
line 105
imgSize=[image.shape[0],image.shape[1],image.shape[2]]

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

4 participants