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

AssertionError in train MOT20 #57

Closed
iTruffle opened this issue Jul 25, 2022 · 5 comments
Closed

AssertionError in train MOT20 #57

iTruffle opened this issue Jul 25, 2022 · 5 comments

Comments

@iTruffle
Copy link

I can successfully run evaluation code for MOT17 and MOT20 and video demo.
But I got an error in training for MOT20, using 'python tools/train.py -f exps/example/mot/yolox_x_mix_mot20_ch.py -d 1 -b 48 --fp16 -o -c pretrained/yolox_x.pth', like this:
image

@iTruffle
Copy link
Author

And I have followed the instruction to change the code in 'line 134-135 in data_augment.py, line 122-125 in mosaicdetection.py, line 217-225 in mosaicdetection.py, line 115-118 in boxes.py' .
After challenging, the code like this:
image
image
image
image

@noahcao
Copy link
Owner

noahcao commented Aug 16, 2022

This is possible if you read an empty file or in a wrong path name. I tried the code on my side, it looks right. Have you fixed this issue?

@iTruffle
Copy link
Author

Sorry, I do not know where is wrong and how to train successfully.

@YamacTan
Copy link

I faced with the same problem today. After examining the error logs, I saw that although the annotation files were created, there were no related images in the "mix_mot" tag or other similar folders created. So because the folders are empty it can't find the images and this error occurs.
After adding the images to the folders manually, the error was resolved and training started. I'm not sure if this is a bug as I haven't had a chance to review the scripts that mix the data yet.

I hope it helps.
Y.

@iTruffle
Copy link
Author

Thank you very much. I will try to train it in next month.

@noahcao noahcao closed this as completed Dec 13, 2022
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

3 participants