Tramac / awesome-semantic-segmentation-pytorch

Semantic Segmentation on PyTorch (include FCN, PSPNet, Deeplabv3, Deeplabv3+, DANet, DenseASPP, BiSeNet, EncNet, DUNet, ICNet, ENet, OCNet, CCNet, PSANet, CGNet, ESPNet, LEDNet, DFANet)
Apache License 2.0
2.82k stars 581 forks source link

When I run the download script, the follow problem occurred.(python ade20k.py --download-dir ../datasets/ade) #87

Closed BunnySF closed 4 years ago

BunnySF commented 4 years ago

Traceback (most recent call last): File "D:/CodeViewing/awesome-semantic-segmentation-pytorch-master/core/data/downloader/ade20k.py", line 12, in from core.utils import download, makedirs File "D:\CodeViewing\awesome-semantic-segmentation-pytorch-master\core__init.py", line 1, in from . import nn, models, utils, data File "D:\CodeViewing\awesome-semantic-segmentation-pytorch-master\core\nn\init__.py", line 4, in from .ca_block import * File "D:\CodeViewing\awesome-semantic-segmentation-pytorch-master\core\nn\ca_block.py", line 6, in from core.nn import _C ImportError: cannot import name '_C'

sainatarajan commented 4 years ago

Have you followed these steps properly?

# the following will install the lib with symbolic links, so that you can modify
# the files if you want and won't need to re-build it
cd awesome-semantic-segmentation-pytorch/core/nn
python setup.py build develop