OC_SORT icon indicating copy to clipboard operation
OC_SORT copied to clipboard

AssertionError in train MOT20

Open iTruffle opened this issue 2 years ago • 3 comments

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 avatar Jul 25 '22 11:07 iTruffle

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

iTruffle avatar Jul 25 '22 11:07 iTruffle

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?

noahcao avatar Aug 16 '22 06:08 noahcao

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

iTruffle avatar Aug 16 '22 06:08 iTruffle

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.

YamacTan avatar Sep 27 '22 09:09 YamacTan

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

iTruffle avatar Sep 27 '22 09:09 iTruffle