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

Docker Image: No module named Torch #17

Closed
Spandan-Madan opened this issue Sep 27, 2018 · 3 comments
Closed

Docker Image: No module named Torch #17

Spandan-Madan opened this issue Sep 27, 2018 · 3 comments

Comments

@Spandan-Madan
Copy link

Hi @PkuRainBow, I tried running the docker version of the code. Here's my command and error:-

smadan@thousandeyes:/data/graphics/toyota-pytorch/OCNet$ sudo docker run rainbowsecret/pytorch04:20180905 python inplace_abn/test_imagenet.py
Traceback (most recent call last):
  File "inplace_abn/test_imagenet.py", line 5, in <module>
    import torch
ImportError: No module named torch

@PkuRainBow
Copy link
Collaborator

I guess you fail to specify the correct path to the python.

@Spandan-Madan
Copy link
Author

Not very familiar with docker actually.

I ran the command :-

sudo docker run rainbowsecret/pytorch04:20180905 python inplace_abn/test_imagenet.py
Traceback (most recent call last):

That should default to the python that comes with the docker, right? Or my python?

@PkuRainBow
Copy link
Collaborator

PkuRainBow commented Sep 28, 2018

You should run with "sudo docker run rainbowsecret/pytorch04:20180905 /root/miniconda3/bin/python inplace_abn/test_imagenet.py".

You are recommended to run "docker run -it rainbowsecret/pytorch04:20180905" and play with the docker before you use it. Please get familiar with the docker by yourself.

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

2 participants