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

Only one sample in train and val #68

Closed
sailor239 opened this issue Aug 24, 2024 · 10 comments · Fixed by #69
Closed

Only one sample in train and val #68

sailor239 opened this issue Aug 24, 2024 · 10 comments · Fixed by #69
Labels
bug Something isn't working

Comments

@sailor239
Copy link

sailor239 commented Aug 24, 2024

Hi, I have totally 16 labelled images (png + json). But after running the command, there is only one in train and one in val. May I know what has gone wrong? Thank you!
image

@dosubot dosubot bot added the bug Something isn't working label Aug 24, 2024
@GreatV
Copy link
Owner

GreatV commented Aug 24, 2024

Which version are you using?

@sailor239
Copy link
Author

0.2.4 Below is the command I used: labelme2yolo --json_dir /Users/xxx/Documents/project/train/

@GreatV
Copy link
Owner

GreatV commented Aug 24, 2024

Could you try it with 0.2.0? it might be caused by parallelization.

@GreatV
Copy link
Owner

GreatV commented Aug 24, 2024

Would you mind providing some logs, I can't reproduce the issue.

@sailor239
Copy link
Author

Thanks for the fast response! Just tried. Now I have the 16 images organized into 12 for train and 4 for val. But for the labels, there is still only one txt file.

@GreatV
Copy link
Owner

GreatV commented Aug 24, 2024

Versions smaller than 0.2 are more stable, just a lot slower, so maybe you could try that.

@sailor239
Copy link
Author

Would you mind providing some logs, I can't reproduce the issue.

There is actually no error. My file names are like "a.b.png" and "a.b.json". Could this be the cause?

@sailor239
Copy link
Author

Would you mind providing some logs, I can't reproduce the issue.

There is actually no error. My file names are like "a.b.png" and "a.b.json". Could this be the cause?

I think this is the issue. I renamed my files to "a.png" and "a.json". Now I get all the outputs correctly. Perhaps the parsing of file names needs to be updated. Thanks again!

@GreatV
Copy link
Owner

GreatV commented Aug 24, 2024

Thanks for the feedback, I'll try to fix the issue next.

@sailor239
Copy link
Author

Thanks for the feedback, I'll try to fix the issue next.

No problem. Great work mate!

@GreatV GreatV mentioned this issue Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants