ByteTrack icon indicating copy to clipboard operation
ByteTrack copied to clipboard

An error has been caught in function 'launch'

Open lx-ynu opened this issue 4 years ago • 15 comments

Hello, when I run "python3 tools/train.py -f exps/example/mot/yolox_x_ablation.py -d 1 -b 2 --fp16 -o -c pretrained/yolox_x.pth", it has the following error, how should I solve it?

2021-11-05 17:35:18 | INFO | yolox.core.trainer:131 - Model Summary: Params: 99.00M, Gflops: 791.73 2021-11-05 17:35:19 | ERROR | yolox.core.launch:90 - An error has been caught in function 'launch', process 'MainProcess' (326996), thread 'MainThread' (140436361090880): Traceback (most recent call last):

File "tools/train.py", line 121, in args=(exp, args), │ └ Namespace(batch_size=2, ckpt='pretrained/yolox_x.pth', devices=1, dist_backend='nccl', dist_url=None, exp_file='exps/example/... └ ╒══════════════════╤═════════════════════════════════════════════════════════════════════════════════════════════════════════...

File "/media//ByteTrack/yolox/core/launch.py", line 90, in launch main_func(*args) │ └ (╒══════════════════╤════════════════════════════════════════════════════════════════════════════════════════════════════════... └ <function main at 0x7fb950edf560>

File "tools/train.py", line 100, in main trainer.train() │ └ <function Trainer.train at 0x7fb950edf5f0> └ <yolox.core.trainer.Trainer object at 0x7fb950edacd0>

File "/media/ByteTrack/yolox/core/trainer.py", line 70, in train self.before_train() │ └ <function Trainer.before_train at 0x7fb9506267a0> └ <yolox.core.trainer.Trainer object at 0x7fb950edacd0>

File "/media/ByteTrack/yolox/core/trainer.py", line 133, in before_train model.to(self.device) │ │ │ └ 'cuda:0' │ │ └ <yolox.core.trainer.Trainer object at 0x7fb950edacd0> │ └ <function Module.to at 0x7fb95ec67c20> └ YOLOX( (backbone): YOLOPAFPN( (backbone): CSPDarknet( (stem): Focus( (conv): BaseConv( (conv): ...

lx-ynu avatar Nov 05 '21 02:11 lx-ynu

Could you please provide more detailed error information?

ifzhang avatar Nov 08 '21 09:11 ifzhang

Could you please provide more detailed error information? Thanks for your reply, I have solved it, it was a problem with the wrong path of my dataset.

lx-ynu avatar Nov 10 '21 03:11 lx-ynu

Hello, there. I'm stuck on the same place,Could you please explain me, How can you solve that error,Thanks in advance.

jahidhasan299 avatar Nov 14 '21 11:11 jahidhasan299

Hello, there. I'm stuck on the same place,Could you please explain me, How can you solve that error,Thanks in advance.

Before running "mix_xxx.py", you need to create folders and links according to the comments in the code.

lx-ynu avatar Nov 16 '21 01:11 lx-ynu

Could you please provide more detailed error information? Thanks for your reply, I have solved it, it was a problem with the wrong path of my dataset.

hello,i only use MOT17,and meet same problem,Could you please explain me, How can you solve that error,Thanks in advance

UESTC-ww avatar Dec 04 '21 11:12 UESTC-ww

i have met the same problem。after installation,I test track and run test.json sucessfully。 python3 tools/track.py -f exps/example/mot/yolox_x_mix_mot20_ch.py -c pretrained/bytetrack_x_mot20.pth.tar -b 1 -d 0 --fp16 --fuse --match_thresh 0.7 --mot20 As I want to run on mot20 train,when I change test.json to train.json, I met the same problem self.train_ann = "train.json" self.val_ann = "train.json" # change to train.json when running on training set

Could you please provide more detailed error information?

zhouxiao999 avatar Dec 13 '21 07:12 zhouxiao999

来信已收到,谢谢~

UESTC-ww avatar Dec 13 '21 07:12 UESTC-ww

I have solved it, the path is incorrect because I did not change the next location。 name='test', # change to train when running on training set

i have met the same problem。after installation,I test track and run test.json sucessfully。 python3 tools/track.py -f exps/example/mot/yolox_x_mix_mot20_ch.py -c pretrained/bytetrack_x_mot20.pth.tar -b 1 -d 0 --fp16 --fuse --match_thresh 0.7 --mot20 As I want to run on mot20 train,when I change test.json to train.json, I met the same problem self.train_ann = "train.json" self.val_ann = "train.json" # change to train.json when running on training set

Could you please provide more detailed error information?

zhouxiao999 avatar Dec 13 '21 07:12 zhouxiao999

来信已收到,谢谢~

how to slove it ,can you tell me?

5211314whb avatar Sep 23 '22 06:09 5211314whb

来信已收到,谢谢~

UESTC-ww avatar Sep 23 '22 06:09 UESTC-ww

来信已收到,谢谢~

UESTC-ww avatar Dec 05 '22 12:12 UESTC-ww

Hi can anyone be more specific on how to solve this? Thanks in advance!

Jessica-hub avatar Feb 07 '24 22:02 Jessica-hub

来信已收到,谢谢~

UESTC-ww avatar Feb 07 '24 22:02 UESTC-ww