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

Sorry,why i got the wrong predict pose ,when i used your pretrained model? #1

Closed
kevin860213 opened this issue Dec 16, 2019 · 8 comments

Comments

@kevin860213
Copy link

Figure_1
I got the image from your pretrained model. Do you have any ideas with this problem? thank you and your project

@pengsida
Copy link
Member

The pretrained model should be put at $ROOT/data/model/pvnet/cat/199.pth.
And run python run.py --type visualize --cfg_file configs/linemod.yaml model cat.

@kevin860213
Copy link
Author

sorry, i didn't create the folder of pvnet , i directly put the model into data.
thank you , it was sloved

@pengsida
Copy link
Member

Enjoy this code!

@pengsida
Copy link
Member

If possible, make more people to know this project.
Thank you!

@kevin860213
Copy link
Author

OK, I will.
Thanks!

@jinglan0829
Copy link

I put the pretrained model at $ROOT/data/model/pvnet/cat/199.pth.
But I have error with :
Traceback (most recent call last):
File "run.py", line 198, in
globals()'run_'+args.type
File "run.py", line 90, in run_visualize
load_network(network, cfg.model_dir, resume=cfg.resume, epoch=cfg.test.epoch)
File "/home/jinglan/clean-pvnet-master/lib/utils/net_utils.py", line 318, in load_network
pretrained_model = torch.load(os.path.join(model_dir, '{}.pth'.format(pth)))
File "/usr/local/lib/python3.5/dist-packages/torch/serialization.py", line 387, in load
return _load(f, map_location, pickle_module, **pickle_load_args)
File "/usr/local/lib/python3.5/dist-packages/torch/serialization.py", line 564, in _load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, ' '.

@pengsida
Copy link
Member

The pth file is broken.

@jinglan0829
Copy link

I'll check it. Thanks!

@Ji-Hu Ji-Hu mentioned this issue Mar 9, 2020
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

3 participants