yolo2-pytorch icon indicating copy to clipboard operation
yolo2-pytorch copied to clipboard

KeyError: "Unable to open object (object 'conv1s.0.0.bn.num_batches_tracked' doesn't exist)"

Open YAyaXM opened this issue 5 years ago • 1 comments

Traceback (most recent call last): File "demo.py", line 37, in net_utils.load_net(trained_model, net) File "/home/xzm_project/DLpj/yolo/yolo2-pytorch/utils/network.py", line 66, in load_net param = torch.from_numpy(np.asarray(h5f[k])) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "/home/xzm_project/.conda/envs/xzm/lib/python3.6/site-packages/h5py/_hl/group.py", line 167, in getitem oid = h5o.open(self.id, self._e(name), lapl=self._lapl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5o.pyx", line 190, in h5py.h5o.open KeyError: "Unable to open object (object 'conv1s.0.0.bn.num_batches_tracked' doesn't exist)" what is problem? i trust you can solve this problem! ganbadie!

YAyaXM avatar Nov 15 '19 10:11 YAyaXM

It is not useful to load the model in the retraining. Just annotate the loaded model. image

zhuang5252 avatar Aug 10 '22 07:08 zhuang5252