I got the following error on import encoding.utils as utils :
Is pytorch-encoding really required?
Can I just use the default utilsand nn package provided by pytorch?
Traceback (most recent call last):
File "G:\My Drive\Debvrat - shared\Codes\Edge Detection\CASENet\DFF-master\exps\train.py", line 17, in <module>
import encoding.utils as utils
File "C:\Anaconda3\lib\site-packages\encoding\__init__.py", line 14, in <module>
from . import nn, functions, dilated, parallel, utils, datasets
File "C:\Anaconda3\lib\site-packages\encoding\nn\__init__.py", line 12, in <module>
from .encoding import *
File "C:\Anaconda3\lib\site-packages\encoding\nn\encoding.py", line 18, in <module>
from ..functions import scaled_l2, aggregate, pairwise_cosine
File "C:\Anaconda3\lib\site-packages\encoding\functions\__init__.py", line 2, in <module>
from .encoding import *
File "C:\Anaconda3\lib\site-packages\encoding\functions\encoding.py", line 14, in <module>
from .. import lib
File "C:\Anaconda3\lib\site-packages\encoding\lib\__init__.py", line 15, in <module>
], build_directory=cpu_path, verbose=False)
File "C:\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 680, in load
is_python_module)
File "C:\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 866, in _jit_compile
with_cuda=with_cuda)
File "C:\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 915, in _write_ninja_file_and_build
with_cuda=with_cuda)
File "C:\Anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 1195, in _write_ninja_file
'cl']).decode().split('\r\n')
File "C:\Anaconda3\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "C:\Anaconda3\lib\subprocess.py", line 512, in run
output=stdout, stderr=stderr)
CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.
Hi,
I got the following error on
import encoding.utils as utils
:Is
pytorch-encoding
really required? Can I just use the defaultutils
andnn
package provided by pytorch?