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

KeyError: 'epoch' on running track.py with hrnetv2_w32_imagenet_pretrained.pth #10

Open
adityamd opened this issue Oct 11, 2021 · 0 comments

Comments

@adityamd
Copy link

adityamd commented Oct 11, 2021

Hello,
I want to use the code with pretrained imagenet weights: hrnetv2_w32_imagenet_pretrained.pth ( given as the official fairmot implementation on imagenet dataset). However, running the command:

python track.py mot --load_model /content/FairMOT/models/hrnetv2_w32_imagenet_pretrained.pth --conf_thres 0.4 --data_dir /content/FairMOT --val_mot20 VAL_MOT20

gives me the following error:

Fix size testing.
training chunk_sizes: [6, 6]
The output will be saved to  /content/FairMOT/src/lib/../../exp/mot/default
heads {'hm': 1, 'wh': 2, 'id': 512, 'reg': 2}
2021-10-11 05:01:30 [INFO]: start seq: MOT20-01
Creating model...
Traceback (most recent call last):
  File "track.py", line 240, in <module>
    save_videos=False)
  File "track.py", line 112, in main
    save_dir=output_dir, show_image=show_image, frame_rate=frame_rate)
  File "track.py", line 56, in eval_seq
    tracker = JDETracker(opt, frame_rate=frame_rate)
  File "/content/FairMOT/src/lib/tracker/multitracker.py", line 181, in __init__
    self.model = load_model(self.model, opt.load_model)
  File "/content/FairMOT/src/lib/models/model.py", line 37, in load_model
    print('loaded {}, epoch {}'.format(model_path, checkpoint['epoch']))
KeyError: 'epoch'

Any help will be appreciated. Thank you

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

1 participant