CTracker icon indicating copy to clipboard operation
CTracker copied to clipboard

test error

Open jinyl777 opened this issue 4 years ago • 14 comments

When I run the test I got result = self.forward(*input, **kwargs) TypeError: forward() missing 1 required positional argument: 'inputs'

I debug the test ,then I find the error occur in modle.py:335 if last_feat is None: return torch.zeros(0), torch.zeros(0, 4), features my conput env is four 2080Ti python0.41 and I don not know why it is occur

jinyl777 avatar Aug 29 '20 02:08 jinyl777

I get the same error.

chtx827 avatar Nov 04 '20 08:11 chtx827

I get the same error.

ZhangwenguangHikvision avatar Nov 10 '20 02:11 ZhangwenguangHikvision

I test it and do not encounter these problems. You need to use the latest code and install the environment according to the readme. And maybe you can check the --dataset_path and --model_dir whether they are as required.

pjl1995 avatar Nov 10 '20 03:11 pjl1995

One simple solution may just use one GPU, "CUDA_VISIBLE_DEVICES=0, python train.py"

ZhangwenguangHikvision avatar Nov 10 '20 08:11 ZhangwenguangHikvision

Thanks, I solved it by using one GPU.

chtx827 avatar Nov 10 '20 08:11 chtx827

Thanks, I solved it by using one GPU.

Could you tell me your memory on GPU? There is only 11G memory in my 2080Ti, It will out of memory。But when I set batch_size=4 and num_workers=16, The #13 will be occur. Have you ever encountered such a problem?

zhengjyu avatar Nov 12 '20 12:11 zhengjyu

Thanks, I solved it by using one GPU.

Could you tell me your memory on GPU? There is only 11G memory in my 2080Ti, It will out of memory。But when I set batch_size=4 and num_workers=16, The #13 will be occur. Have you ever encountered such a problem?

My GPU is the same as yours. Maybe you can switch to Pytorch ==1.4.0.

chtx827 avatar Nov 13 '20 04:11 chtx827

Thanks, I solved it by using one GPU.

Could you tell me your memory on GPU? There is only 11G memory in my 2080Ti, It will out of memory。But when I set batch_size=4 and num_workers=16, The #13 will be occur. Have you ever encountered such a problem?

My GPU is the same as yours. Maybe you can switch to Pytorch ==1.4.0.

OK thank you very much

zhengjyu avatar Nov 13 '20 08:11 zhengjyu

@ZhangwenguangHikvision Is I train on one GPU and then test can slove this problem?

jinyl777 avatar Dec 13 '20 04:12 jinyl777

@pjl1995 I train 100 epoch the last loss is 0.4 .And I test MOT16 train dateset ,got MOTA is 65.2 . I think is low of your paper is it code can not recurcent

jinyl777 avatar Dec 14 '20 08:12 jinyl777

You train on MOT17 training set, so you should test this model on MOT17 test set, instead of the MOT16 training set.

pjl1995 avatar Dec 16 '20 02:12 pjl1995

Thank you very much for your excellent work, I would like to know whether the MOT7 dataset only keeps the pictures within each sequence for training

LiangXiaoguo avatar Sep 23 '21 13:09 LiangXiaoguo

Thank you very much for your excellent work, I would like to know whether the MOT7 dataset only keeps the pictures within each sequence for training

Yes.

pjl1995 avatar Sep 26 '21 02:09 pjl1995

@pjl1995 I train 100 epoch the last loss is 0.4 .And I test MOT16 train dateset ,got MOTA is 65.2 . I think is low of your paper is it code can not recurcent hi Are you using a pretrained model in training

JuntongMeng avatar Apr 26 '22 03:04 JuntongMeng