ByteTrack icon indicating copy to clipboard operation
ByteTrack copied to clipboard

AssertionError assert num_gpu <= torch.cuda.device_count()

Open iTruffle opened this issue 3 years ago • 3 comments
trafficstars

Thank you for your great job. I run the code on "Quadro RTX 5000", and successfully get the results of video demo and MOT17 MOT20 datasets. But, I fail to train on MOT17 and MOT20 datasets. These tracking and training are carried on one environment. When I train, I get an error like this: image

And I have checked the informations: image image

How can I solve this problem? Looking forward to your reply?

iTruffle avatar Jul 13 '22 09:07 iTruffle

I can successfully run the video demo, but fail in training.

image

image

iTruffle avatar Jul 13 '22 09:07 iTruffle

Try changing - d argument to 0 or 1. It will probably work.

Otherwise try reducing the batch size as well but - d would solve it

parthmalpathak avatar Jul 13 '22 22:07 parthmalpathak

Thank you very much. I have solved this problem. But when running the code "python3 tools/train.py -f exps/example/mot/yolox_x_mix_mot20_ch.py -d 0 -b 48 --fp16 -o -c pretrained/yolox_x.pth", I meet another error like this: image image image How can I solve this problem?

iTruffle avatar Jul 14 '22 10:07 iTruffle

Thank you very much. I have solved this problem. But when running the code "python3 tools/train.py -f exps/example/mot/yolox_x_mix_mot20_ch.py -d 0 -b 48 --fp16 -o -c pretrained/yolox_x.pth", I meet another error like this: image image image How can I solve this problem?

l have the same question you, how you fix it finally?

gyh420 avatar Dec 04 '22 07:12 gyh420

This may be the cuda version is not suitable. I run with python 3.8 torch 1.11.0+cu113 and torchvision==0.12.0

iTruffle avatar Feb 15 '23 06:02 iTruffle

This may be the cuda version is not suitable. I run with python 3.8 torch 1.11.0+cu113 and torchvision==0.12.0 thank you, l have fix it

gyh420 avatar Feb 15 '23 11:02 gyh420