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

No module named 'segmentation_models_pytorch.common.blocks' #37

Closed
pyaf opened this issue Aug 6, 2019 · 0 comments
Closed

No module named 'segmentation_models_pytorch.common.blocks' #37

pyaf opened this issue Aug 6, 2019 · 0 comments

Comments

@pyaf
Copy link

pyaf commented Aug 6, 2019

Hi,

I'm working in a internet restricted system. I've installed segmentation_models.pytorch using source code using pip install ..
Now when I try to import it, I get following error:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-b9e13fa886e0> in <module>
----> 1 import segmentation_models_pytorch as smp

/opt/conda/lib/python3.6/site-packages/segmentation_models_pytorch/__init__.py in <module>
----> 1 from .unet import Unet
      2 from .linknet import Linknet
      3 from .fpn import FPN
      4 from .pspnet import PSPNet
      5 

/opt/conda/lib/python3.6/site-packages/segmentation_models_pytorch/unet/__init__.py in <module>
----> 1 from .model import Unet

/opt/conda/lib/python3.6/site-packages/segmentation_models_pytorch/unet/model.py in <module>
----> 1 from .decoder import UnetDecoder
      2 from ..base import EncoderDecoder
      3 from ..encoders import get_encoder
      4 
      5 

/opt/conda/lib/python3.6/site-packages/segmentation_models_pytorch/unet/decoder.py in <module>
      3 import torch.nn.functional as F
      4 
----> 5 from ..common.blocks import Conv2dReLU
      6 from ..base.model import Model
      7 

ModuleNotFoundError: No module named 'segmentation_models_pytorch.common.blocks'


Any ideas how this error can be solved?

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