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

How can I fix 'back2future_kitti.pth.tar' error? #5

Open
ahmetybilgin opened this issue May 20, 2020 · 3 comments
Open

How can I fix 'back2future_kitti.pth.tar' error? #5

ahmetybilgin opened this issue May 20, 2020 · 3 comments

Comments

@ahmetybilgin
Copy link

After making the necessary institutions, I ran demo.py. The error I encountered is this> FileNotFoundError: [Errno 2] No such file or directory: 'pretrained / back2future_kitti.pth.tar'. When I look at it with normal access it gives an error > an error occurred while loading the archive. Is the error caused by the file's corruption?

Secondly, the output I got when I ran the line you gave as test > python3 test_back2future.py --pretrained-flow path / to / pretrained / model --kitti-dir path / to / kitti / 2015 / root
Traceback (most recent call last):
   File "test_back2future.py", line 8, in
     from path import Path
ImportError: cannot import name 'Path'

What solution can I apply for this?
Thank you from now. @anuragranj @JJanai

@anuragranj
Copy link
Owner

pip3 install path.py

@JJanai
Copy link
Collaborator

JJanai commented May 21, 2020

Hi
the first error is caused because we forgot to change the file name in the code.
Please change the file path to 'pretrained/b2f_kitti.pth.tar' and then it should work.

In addition, please install the path package as suggested by Anurag.
I hope this will solve your problems.
Best
Joel

@ahmetybilgin
Copy link
Author

Thank you so much @JJanai @anuragranj .
I didn't think the filename would be different. I did what you said and the mistakes are gone. But now I'm getting cuda error. I wonder what I need to solve this?

RuntimeError: cuda runtime error (48) : no kernel image is available for execution on the device at /opt/conda/conda-bld/pytorch_1518244421288/work/torch/lib/THC/generic/THCTensorMathPairwise.cu:40

Ubuntu:18.04
Nvidia GeForce 840M (compute capability: 5.0)
Nvidia driver:390
cuda:9.0
pytorch:0.3.1
cudnn7.0

Thank you for your help.

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