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

TypeError: list indices must be integers or slices, not str #431

Open
L1690941806 opened this issue Jun 5, 2024 · 1 comment
Open

TypeError: list indices must be integers or slices, not str #431

L1690941806 opened this issue Jun 5, 2024 · 1 comment

Comments

@L1690941806
Copy link

when I trained the model, I met the following problem. How can I solve it?

Traceback (most recent call last):
File "D:/py-program/pytracking/ltr/run_training.py", line 55, in
main()
File "D:/py-program/pytracking/ltr/run_training.py", line 50, in main
run_training(args.train_module, args.train_name, args.cudnn_benchmark)
File "D:/py-program/pytracking/ltr/run_training.py", line 39, in run_training
expr_func(settings)
File "D:\py-program\pytracking\ltr\train_settings\tamos\tamos_resnet50.py", line 67, in run
imagenetvid_train = ImagenetVIDMOT(settings.env.imagenet_vid_gmot_dir, split='train')
File "D:\py-program\pytracking\ltr\dataset\imagenetvid_mot.py", line 31, in init
self.sequence_list, self.num_tracks_per_seq = data['seq_list'], data['num_tracks']
TypeError: list indices must be integers or slices, not str

@matteo-dunnhofer
Copy link

Hi @L1690941806

where did you find the ImageNet-Vid.json file needed in line

path = os.path.join(root, 'ImageNet-Vid.json')
?

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

2 participants