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

Error when import the pre-train model #10

Closed
AbnerCSZ opened this issue Feb 26, 2019 · 3 comments
Closed

Error when import the pre-train model #10

AbnerCSZ opened this issue Feb 26, 2019 · 3 comments

Comments

@AbnerCSZ
Copy link

I download the model trained with semi-dense lidar ground truth, from:supervised model.

When I run

torch.load('supervised/model_best.pth.tar')

This is a error:

Traceback (most recent call last):
  File "model.py", line 173, in <module>
    main()
  File "model.py", line 164, in main
    torch.load('supervised/model_best.pth.tar')
  File "/home/S/.local/lib/python3.5/site-packages/torch/serialization.py", line 367, in load
    return _load(f, map_location, pickle_module)
  File "/home/S/.local/lib/python3.5/site-packages/torch/serialization.py", line 538, in _load
    result = unpickler.load()
ImportError: No module named 'metrics'

Could your tell me why?
Thanks~

@fangchangma
Copy link
Owner

Hi. That's probably because I haven't uploaded the metrics.py file (didn't realize this was also necessary). I will upload the rest of the source code today.

@AbnerCSZ
Copy link
Author

AbnerCSZ commented Mar 4, 2019

Thanks for your help. I can load model after updating.

@AbnerCSZ AbnerCSZ closed this as completed Mar 4, 2019
@wuheng199112068
Copy link

An error occurred when entering such a parameter on the command line,what can we input about [checkpoint -path]?Can you give us an example?

Namespace(batch_size=1, criterion='l2', epochs=11, evaluate='[checkpoint-path]', i
nput='gd', jitter=0.1, layers=34, lr=1e-05, pretrained=False, print_freq=10, rank_metric='rmse', result='..\results', resume='', start_epoch=0, train_mode='dense', use_d=True, use_g=True, use_pose=False, use_rgb=False, val='select', w1=0, w2=0, weight_decay=0, workers=4)
=> no model found at '[checkpoint-path]'

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