junfu1115 / DANet

Dual Attention Network for Scene Segmentation (CVPR2019)
MIT License
2.41k stars 483 forks source link

ImportError: No module named 'enclib_cpu' run train.py #105

Open shuangyumelody opened 4 years ago

shuangyumelody commented 4 years ago
Traceback (most recent call last):
  File "/media/data/Project_copy/DANet/danet/train.py", line 17, in <module>
    import encoding.utils as utils
  File "/media/data/Project_copy/DANet/encoding/__init__.py", line 13, in <module>
    from . import nn, functions, dilated, parallel, utils, models, datasets
  File "/media/data/Project_copy/DANet/encoding/nn/__init__.py", line 12, in <module>
    from .encoding import *
  File "/media/data/Project_copy/DANet/encoding/nn/encoding.py", line 19, in <module>
    from ..functions import scaledL2, aggregate, pairwise_cosine
  File "/media/data/Project_copy/DANet/encoding/functions/__init__.py", line 2, in <module>
    from .encoding import *
  File "/media/data/Project_copy/DANet/encoding/functions/encoding.py", line 14, in <module>
    from .. import lib
  File "/media/data/Project_copy/DANet/encoding/lib/__init__.py", line 12, in <module>
    ], build_directory=cpu_path, verbose=False)
  File "/usr/local/lib/python3.5/dist-packages/torch/utils/cpp_extension.py", line 644, in load
    is_python_module)
  File "/usr/local/lib/python3.5/dist-packages/torch/utils/cpp_extension.py", line 824, in _jit_compile
    return _import_module_from_library(name, build_directory, is_python_module)
  File "/usr/local/lib/python3.5/dist-packages/torch/utils/cpp_extension.py", line 967, in _import_module_from_library
    file, path, description = imp.find_module(module_name, [path])
  File "/usr/lib/python3.5/imp.py", line 296, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named 'enclib_cpu'
peterwkl2013 commented 3 years ago

me too