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

python ./src/faster.py --demo ./kitti_format/kitti/val.txt --data_dir ./kitti_format --calib_dir ./kitti_format/data/kitti/calib/ --load_model ./kitti_format/exp/KM3D_res18/Model_rtm3d_epoch_300.pth --gpus 0 --arch res_18 #42

Open
kwl11556 opened this issue Jul 22, 2021 · 3 comments

Comments

@kwl11556
Copy link

Fix size testing.
training chunk_sizes: [32]
The output will be saved to ./kitti_format/exp/default
heads {'hm': 3, 'wh': 2, 'hps': 18, 'rot': 8, 'dim': 3, 'prob': 1, 'reg': 2, 'hm_hp': 9, 'hp_offset': 2}
Creating model...
Downloading: "https://download.pytorch.org/models/resnet18-5c106cde.pth" to /home/god/.cache/torch/checkpoints/resnet18-5c106cde.pth
100.0%
=> loading pretrained model https://download.pytorch.org/models/resnet18-5c106cde.pth
./kitti_format/exp/KM3D_res18/Model_rtm3d_epoch_300.pth
Traceback (most recent call last):
File "./src/faster.py", line 55, in
demo(opt)
File "./src/faster.py", line 23, in demo
detector = Detector(opt)
File "/home/god/KM3D/src/lib/detectors/car_pose.py", line 29, in init
super(CarPoseDetector, self).init(opt)
File "/home/god/KM3D/src/lib/detectors/base_detector.py", line 25, in init
self.model = load_model(self.model, opt.load_model)
File "/home/god/KM3D/src/lib/models/model.py", line 36, in load_model
print('loaded {}, epoch {}'.format(model_path, checkpoint['epoch']))
KeyError: 'epoch'

@Dosimz
Copy link

Dosimz commented Oct 6, 2021

I think you did not download the correct pretrained models.

You can find the provided model on README.md >> KM3D Baseline and Model Zoo


Backbone: ResNet-18
FPS: 46.7
Model: (Google Drive), (Baidu Cloud 提取码:60ks)

https://drive.google.com/file/d/14ww6mxtitO9aDszZN3ai8N7U1doehvi8/view?usp=sharing


python ./src/faster.py --vis --demo ./demo_kitti_format/data/kitti/image --calib_dir ./demo_kitti_format/data/kitti/calib/ --load_model ./demo_kitti_format/exp/KM3D/model_res18_1.pth --gpus 0 --arch res_18

@benzg500
Copy link

i have the same problem. i test 4 models provided in readme.md.

@Takugo
Copy link

Takugo commented Nov 8, 2021

I got similar issues. The program just hang there and print nothing after "loaded xxx.pth"

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

4 participants