openseg-group / OCNet.pytorch

Please choose the openseg.pytorch project for the updated code that achieve SOTA on 6 benchmarks!
MIT License
812 stars 128 forks source link

Docker Image: No module named Torch #17

Closed Spandan-Madan closed 6 years ago

Spandan-Madan commented 6 years ago

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 commented 6 years ago

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

Spandan-Madan commented 6 years ago

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 commented 6 years ago

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.