FairMOT icon indicating copy to clipboard operation
FairMOT copied to clipboard

KeyError: 'epoch'

Open bhumikasinghrk opened this issue 4 years ago • 4 comments

When i run " !python demo.py mot --load_model ./lib/models/fairmot_dla34.pth --conf_thres 0.4 " I get this error

Fix size testing. training chunk_sizes: [6, 6] The output will be saved to /content/gdrive/My Drive/FairMOT/src/lib/../../exp/mot/default heads {'hm': 1, 'wh': 4, 'id': 128, 'reg': 2} 2020-12-15 05:00:40 [INFO]: Starting tracking... Lenth of the video: 1500 frames Creating model... Traceback (most recent call last): File "demo.py", line 43, in demo(opt) File "demo.py", line 32, in demo use_cuda=opt.gpus!=[-1]) File "/content/gdrive/My Drive/FairMOT/src/track.py", line 73, in eval_seq tracker = JDETracker(opt, frame_rate=frame_rate) File "/content/gdrive/My Drive/FairMOT/src/lib/tracker/multitracker.py", line 184, in init self.model = load_model(self.model, opt.load_model) File "/content/gdrive/My Drive/FairMOT/src/lib/models/model.py", line 38, in load_model print('loaded {}, epoch {}'.format(model_path, checkpoint['epoch'])) KeyError: 'epoch'

bhumikasinghrk avatar Dec 15 '20 05:12 bhumikasinghrk

You can check the path of file 'fairmot_dla34.pth'. I use this path: --load_model ../models/fairmot_dla34.pth

ifzhang avatar Jan 15 '21 09:01 ifzhang

当我跑hrnet模型的时候,出现了同样的问题,我的路径没有出错啊

csdingithub avatar Jul 02 '21 06:07 csdingithub

当我跑hrnet模型的时候,出现了同样的问题,我的路径没有出错啊

请问您的这个问题解决了吗?我也遇到了同样的问题

KeyuLuo avatar Apr 24 '22 19:04 KeyuLuo

当我跑hrnet模型的时候,出现了同样的问题,我的路径没有出错啊

请问您的这个问题解决了吗?我也遇到了同样的问题

我跑henet的时候也遇到了这个问题,请问你解决了嘛?

SmallGGgg avatar Mar 11 '24 08:03 SmallGGgg