You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I downloaded your pretrained model, but I got an error while loading root@dl-0835182853-pod-jupyter-67cc9db95c-4gq8q:~/monocon_modifyV2-master/experiments/example# python ../../tools/train_val.py --config kitti_example.yaml --e 2022-05-20 20:48:28,228 INFO ################### Evaluation Only ################## 2022-05-20 20:48:34,673 INFO ==> Loading from checkpoint '/root/monocon_modifyV2-master/checkpoints/checkpoint_epoch_140.pth' Traceback (most recent call last): File "../../tools/train_val.py", line 81, in <module> main() File "../../tools/train_val.py", line 50, in main tester.test() File "/root/monocon_modifyV2-master/lib/helpers/tester_helper.py", line 36, in test logger=self.logger) File "/root/monocon_modifyV2-master/lib/helpers/save_helper.py", line 37, in load_checkpoint model.load_state_dict(checkpoint['model_state']) File "/root/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1052, in load_state_dict self.__class__.__name__, "\n\t".join(error_msgs))) RuntimeError: Error(s) in loading state_dict for MonoCon: Missing key(s) in state_dict: "center2kpt_offset.0.weight", "center2kpt_offset.0.bias", "center2kpt_offset.2.weight", "center2kpt_offset.2.bias", "kpt_heatmap.0.weight", "kpt_heatmap.0.bias", "kpt_heatmap.2.weight", "kpt_heatmap.2.bias", "kpt_heatmap_offset.0.weight", "kpt_heatmap_offset.0.bias", "kpt_heatmap_offset.2.weight", "kpt_heatmap_offset.2.bias". size mismatch for heatmap.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for heatmap.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for heatmap.2.weight: copying a param with shape torch.Size([3, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([3, 64, 1, 1]). size mismatch for offset_2d.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for offset_2d.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for offset_2d.2.weight: copying a param with shape torch.Size([2, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 64, 1, 1]). size mismatch for size_2d.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for size_2d.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for size_2d.2.weight: copying a param with shape torch.Size([2, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 64, 1, 1]). size mismatch for depth.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for depth.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for depth.2.weight: copying a param with shape torch.Size([2, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 64, 1, 1]). size mismatch for offset_3d.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for offset_3d.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for offset_3d.2.weight: copying a param with shape torch.Size([2, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 64, 1, 1]). size mismatch for size_3d.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for size_3d.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for size_3d.2.weight: copying a param with shape torch.Size([3, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([3, 64, 1, 1]). size mismatch for heading.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for heading.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for heading.2.weight: copying a param with shape torch.Size([24, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([24, 64, 1, 1]).
The text was updated successfully, but these errors were encountered:
This is the performance after my training, far from the performance in the author's paper
Car [email protected], 0.70, 0.70:
bbox AP:96.3709, 92.1202, 84.8560
bev AP:22.6310, 18.1839, 15.9116
3d AP:15.8479, 12.4094, 11.1673
aos AP:95.91, 91.43, 83.64
I downloaded your pretrained model, but I got an error while loading
root@dl-0835182853-pod-jupyter-67cc9db95c-4gq8q:~/monocon_modifyV2-master/experiments/example# python ../../tools/train_val.py --config kitti_example.yaml --e 2022-05-20 20:48:28,228 INFO ################### Evaluation Only ################## 2022-05-20 20:48:34,673 INFO ==> Loading from checkpoint '/root/monocon_modifyV2-master/checkpoints/checkpoint_epoch_140.pth' Traceback (most recent call last): File "../../tools/train_val.py", line 81, in <module> main() File "../../tools/train_val.py", line 50, in main tester.test() File "/root/monocon_modifyV2-master/lib/helpers/tester_helper.py", line 36, in test logger=self.logger) File "/root/monocon_modifyV2-master/lib/helpers/save_helper.py", line 37, in load_checkpoint model.load_state_dict(checkpoint['model_state']) File "/root/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1052, in load_state_dict self.__class__.__name__, "\n\t".join(error_msgs))) RuntimeError: Error(s) in loading state_dict for MonoCon: Missing key(s) in state_dict: "center2kpt_offset.0.weight", "center2kpt_offset.0.bias", "center2kpt_offset.2.weight", "center2kpt_offset.2.bias", "kpt_heatmap.0.weight", "kpt_heatmap.0.bias", "kpt_heatmap.2.weight", "kpt_heatmap.2.bias", "kpt_heatmap_offset.0.weight", "kpt_heatmap_offset.0.bias", "kpt_heatmap_offset.2.weight", "kpt_heatmap_offset.2.bias". size mismatch for heatmap.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for heatmap.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for heatmap.2.weight: copying a param with shape torch.Size([3, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([3, 64, 1, 1]). size mismatch for offset_2d.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for offset_2d.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for offset_2d.2.weight: copying a param with shape torch.Size([2, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 64, 1, 1]). size mismatch for size_2d.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for size_2d.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for size_2d.2.weight: copying a param with shape torch.Size([2, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 64, 1, 1]). size mismatch for depth.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for depth.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for depth.2.weight: copying a param with shape torch.Size([2, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 64, 1, 1]). size mismatch for offset_3d.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for offset_3d.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for offset_3d.2.weight: copying a param with shape torch.Size([2, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 64, 1, 1]). size mismatch for size_3d.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for size_3d.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for size_3d.2.weight: copying a param with shape torch.Size([3, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([3, 64, 1, 1]). size mismatch for heading.0.weight: copying a param with shape torch.Size([256, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 3, 3]). size mismatch for heading.0.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([64]). size mismatch for heading.2.weight: copying a param with shape torch.Size([24, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([24, 64, 1, 1]).
The text was updated successfully, but these errors were encountered: