justanhduc / neuralnet-pytorch

A high level framework for general purpose neural networks in Pytorch.
https://neuralnet-pytorch.readthedocs.io
MIT License
27 stars 6 forks source link

Where is neuralnet_pytorch.ext? #9

Open pb0316 opened 2 years ago

pb0316 commented 2 years ago

Hi,

I downloaded the latest code and want to use the emd loss. In extensions/dist_emd.py file, there is import neuralnet_pytorch.ext as ext in line 2. But where is the neuralnet_pytorch.ext? I cannot find the file, and my python raises an error as well.

Thanks!

justanhduc commented 2 years ago

Hi @pb0316. I think the installation is not successful yet. Could you please provide your environment info and the installation log so I can have better backgrounds on what you have run?

pb0316 commented 2 years ago

Yes. It seems that the cuda ext is not installed successfully. My env: cuda 10.1, gcc 8, pytorch 1.4, my install log is:

running install running bdist_egg running egg_info writing neuralnet_pytorch.egg-info/PKG-INFO writing dependency_links to neuralnet_pytorch.egg-info/dependency_links.txt writing requirements to neuralnet_pytorch.egg-info/requires.txt writing top-level names to neuralnet_pytorch.egg-info/top_level.txt reading manifest file 'neuralnet_pytorch.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.txt' writing manifest file 'neuralnet_pytorch.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py copying neuralnet_pytorch/_version.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch copying neuralnet_pytorch/init.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch copying neuralnet_pytorch/monitor.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch copying neuralnet_pytorch/metrics.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch copying neuralnet_pytorch/version.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch creating build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils copying neuralnet_pytorch/utils/activation_utils.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils copying neuralnet_pytorch/utils/layer_utils.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils copying neuralnet_pytorch/utils/init.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils copying neuralnet_pytorch/utils/data_utils.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils copying neuralnet_pytorch/utils/cv_utils.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils copying neuralnet_pytorch/utils/numpy_utils.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils copying neuralnet_pytorch/utils/misc_utils.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils copying neuralnet_pytorch/utils/tensor_utils.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils creating build/lib.linux-x86_64-3.6/neuralnet_pytorch/zoo copying neuralnet_pytorch/zoo/init.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/zoo copying neuralnet_pytorch/zoo/resnet.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/zoo copying neuralnet_pytorch/zoo/vgg.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/zoo creating build/lib.linux-x86_64-3.6/neuralnet_pytorch/gin_nnt copying neuralnet_pytorch/gin_nnt/init.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/gin_nnt copying neuralnet_pytorch/gin_nnt/external_configurables.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/gin_nnt creating build/lib.linux-x86_64-3.6/neuralnet_pytorch/extensions copying neuralnet_pytorch/extensions/bpd.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/extensions copying neuralnet_pytorch/extensions/pc2vox.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/extensions copying neuralnet_pytorch/extensions/init.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/extensions copying neuralnet_pytorch/extensions/dist_emd.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/extensions copying neuralnet_pytorch/extensions/dist_chamfer.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/extensions creating build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers copying neuralnet_pytorch/layers/abstract.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers copying neuralnet_pytorch/layers/points.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers copying neuralnet_pytorch/layers/aggregation.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers copying neuralnet_pytorch/layers/blocks.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers copying neuralnet_pytorch/layers/resizing.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers copying neuralnet_pytorch/layers/init.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers copying neuralnet_pytorch/layers/convolution.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers copying neuralnet_pytorch/layers/adain.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers copying neuralnet_pytorch/layers/normalization.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers creating build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim copying neuralnet_pytorch/optim/init.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim copying neuralnet_pytorch/optim/nadam.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim copying neuralnet_pytorch/optim/lookahead.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim copying neuralnet_pytorch/optim/adabound.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim creating build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim/lr_scheduler copying neuralnet_pytorch/optim/lr_scheduler/warm_restart.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim/lr_scheduler copying neuralnet_pytorch/optim/lr_scheduler/init.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim/lr_scheduler copying neuralnet_pytorch/optim/lr_scheduler/inverse_lr.py -> build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim/lr_scheduler UPDATING build/lib.linux-x86_64-3.6/neuralnet_pytorch/_version.py set build/lib.linux-x86_64-3.6/neuralnet_pytorch/_version.py to '0+unknown' running build_ext creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/neuralnet_pytorch copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/_version.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch creating build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils/activation_utils.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils/layer_utils.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils/init.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils/data_utils.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils/cv_utils.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils/numpy_utils.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils/misc_utils.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/utils/tensor_utils.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils creating build/bdist.linux-x86_64/egg/neuralnet_pytorch/zoo copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/zoo/init.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/zoo copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/zoo/resnet.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/zoo copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/zoo/vgg.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/zoo copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/ext.cpython-36m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/neuralnet_pytorch creating build/bdist.linux-x86_64/egg/neuralnet_pytorch/gin_nnt copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/gin_nnt/init.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/gin_nnt copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/gin_nnt/external_configurables.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/gin_nnt copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/init.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/monitor.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch creating build/bdist.linux-x86_64/egg/neuralnet_pytorch/extensions copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/extensions/bpd.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/extensions copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/extensions/pc2vox.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/extensions copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/extensions/init.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/extensions copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/extensions/dist_emd.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/extensions copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/extensions/dist_chamfer.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/extensions copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/metrics.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch creating build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers/abstract.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers/points.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers/aggregation.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers/blocks.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers/resizing.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers/init.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers/convolution.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers/adain.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/layers/normalization.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/version.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch creating build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim/init.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim/nadam.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim creating build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim/lr_scheduler copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim/lr_scheduler/warm_restart.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim/lr_scheduler copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim/lr_scheduler/init.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim/lr_scheduler copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim/lr_scheduler/inverse_lr.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim/lr_scheduler copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim/lookahead.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim copying build/lib.linux-x86_64-3.6/neuralnet_pytorch/optim/adabound.py -> build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/_version.py to _version.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils/activation_utils.py to activation_utils.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils/layer_utils.py to layer_utils.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils/init.py to init.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils/data_utils.py to data_utils.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils/cv_utils.py to cv_utils.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils/numpy_utils.py to numpy_utils.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils/misc_utils.py to misc_utils.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/utils/tensor_utils.py to tensor_utils.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/zoo/init.py to init.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/zoo/resnet.py to resnet.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/zoo/vgg.py to vgg.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/gin_nnt/init.py to init.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/gin_nnt/external_configurables.py to external_configurables.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/init.py to init.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/monitor.py to monitor.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/extensions/bpd.py to bpd.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/extensions/pc2vox.py to pc2vox.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/extensions/init.py to init.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/extensions/dist_emd.py to dist_emd.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/extensions/dist_chamfer.py to dist_chamfer.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/metrics.py to metrics.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers/abstract.py to abstract.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers/points.py to points.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers/aggregation.py to aggregation.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers/blocks.py to blocks.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers/resizing.py to resizing.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers/init.py to init.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers/convolution.py to convolution.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers/adain.py to adain.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/layers/normalization.py to normalization.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/version.py to version.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim/init.py to init.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim/nadam.py to nadam.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim/lr_scheduler/warm_restart.py to warm_restart.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim/lr_scheduler/init.py to init.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim/lr_scheduler/inverse_lr.py to inverse_lr.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim/lookahead.py to lookahead.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/optim/adabound.py to adabound.cpython-36.pyc creating stub loader for neuralnet_pytorch/ext.cpython-36m-x86_64-linux-gnu.so byte-compiling build/bdist.linux-x86_64/egg/neuralnet_pytorch/ext.py to ext.cpython-36.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying neuralnet_pytorch.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying neuralnet_pytorch.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying neuralnet_pytorch.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying neuralnet_pytorch.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying neuralnet_pytorch.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt zip_safe flag not set; analyzing archive contents... neuralnet_pytorch.pycache.ext.cpython-36: module references file creating 'dist/neuralnet_pytorch-1.0.0+unknown-py3.6-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing neuralnet_pytorch-1.0.0+unknown-py3.6-linux-x86_64.egg creating /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages/neuralnet_pytorch-1.0.0+unknown-py3.6-linux-x86_64.egg Extracting neuralnet_pytorch-1.0.0+unknown-py3.6-linux-x86_64.egg to /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Removing neuralnet-pytorch 1.0.0+unknown from easy-install.pth file Adding neuralnet-pytorch 1.0.0+unknown to easy-install.pth file

Installed /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages/neuralnet_pytorch-1.0.0+unknown-py3.6-linux-x86_64.egg Processing dependencies for neuralnet-pytorch==1.0.0+unknown Searching for git-python==1.0.3 Best match: git-python 1.0.3 Adding git-python 1.0.3 to easy-install.pth file Installing gp script to /home/datamining/miniconda3/envs/bopan/bin

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for tensorboard==2.7.0 Best match: tensorboard 2.7.0 Adding tensorboard 2.7.0 to easy-install.pth file Installing tensorboard script to /home/datamining/miniconda3/envs/bopan/bin

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for future==0.18.2 Best match: future 0.18.2 Adding future 0.18.2 to easy-install.pth file Installing futurize script to /home/datamining/miniconda3/envs/bopan/bin Installing pasteurize script to /home/datamining/miniconda3/envs/bopan/bin

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for imageio==2.11.1 Best match: imageio 2.11.1 Adding imageio 2.11.1 to easy-install.pth file Installing imageio_download_bin script to /home/datamining/miniconda3/envs/bopan/bin Installing imageio_remove_bin script to /home/datamining/miniconda3/envs/bopan/bin

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for numpy==1.19.2 Best match: numpy 1.19.2 Adding numpy 1.19.2 to easy-install.pth file Installing f2py script to /home/datamining/miniconda3/envs/bopan/bin Installing f2py3 script to /home/datamining/miniconda3/envs/bopan/bin Installing f2py3.6 script to /home/datamining/miniconda3/envs/bopan/bin

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for scipy==1.5.4 Best match: scipy 1.5.4 Adding scipy 1.5.4 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for matplotlib==3.1.0 Best match: matplotlib 3.1.0 Adding matplotlib 3.1.0 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for sympy==1.9 Best match: sympy 1.9 Adding sympy 1.9 to easy-install.pth file Installing isympy script to /home/datamining/miniconda3/envs/bopan/bin

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for GitPython==3.1.20 Best match: GitPython 3.1.20 Adding GitPython 3.1.20 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for google-auth==2.3.3 Best match: google-auth 2.3.3 Adding google-auth 2.3.3 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for google-auth-oauthlib==0.4.6 Best match: google-auth-oauthlib 0.4.6 Adding google-auth-oauthlib 0.4.6 to easy-install.pth file Installing google-oauthlib-tool script to /home/datamining/miniconda3/envs/bopan/bin

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for Markdown==3.3.6 Best match: Markdown 3.3.6 Adding Markdown 3.3.6 to easy-install.pth file Installing markdown_py script to /home/datamining/miniconda3/envs/bopan/bin

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for Werkzeug==2.0.2 Best match: Werkzeug 2.0.2 Adding Werkzeug 2.0.2 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for protobuf==3.19.1 Best match: protobuf 3.19.1 Adding protobuf 3.19.1 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for tensorboard-plugin-wit==1.8.0 Best match: tensorboard-plugin-wit 1.8.0 Adding tensorboard-plugin-wit 1.8.0 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for absl-py==1.0.0 Best match: absl-py 1.0.0 Adding absl-py 1.0.0 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for setuptools==58.0.4 Best match: setuptools 58.0.4 Adding setuptools 58.0.4 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for requests==2.26.0 Best match: requests 2.26.0 Adding requests 2.26.0 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for grpcio==1.42.0 Best match: grpcio 1.42.0 Adding grpcio 1.42.0 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for wheel==0.37.0 Best match: wheel 0.37.0 Processing wheel-0.37.0-py3.6.egg wheel 0.37.0 is already the active version in easy-install.pth Installing wheel script to /home/datamining/miniconda3/envs/bopan/bin

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages/wheel-0.37.0-py3.6.egg Searching for tensorboard-data-server==0.6.1 Best match: tensorboard-data-server 0.6.1 Adding tensorboard-data-server 0.6.1 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for Pillow==8.4.0 Best match: Pillow 8.4.0 Adding Pillow 8.4.0 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for pyparsing==3.0.6 Best match: pyparsing 3.0.6 Adding pyparsing 3.0.6 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for kiwisolver==1.3.1 Best match: kiwisolver 1.3.1 Adding kiwisolver 1.3.1 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for cycler==0.11.0 Best match: cycler 0.11.0 Adding cycler 0.11.0 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for python-dateutil==2.8.2 Best match: python-dateutil 2.8.2 Adding python-dateutil 2.8.2 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for mpmath==1.2.1 Best match: mpmath 1.2.1 Adding mpmath 1.2.1 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for typing-extensions==3.10.0.2 Best match: typing-extensions 3.10.0.2 Adding typing-extensions 3.10.0.2 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for gitdb==4.0.9 Best match: gitdb 4.0.9 Adding gitdb 4.0.9 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for cachetools==4.2.4 Best match: cachetools 4.2.4 Adding cachetools 4.2.4 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for pyasn1-modules==0.2.8 Best match: pyasn1-modules 0.2.8 Adding pyasn1-modules 0.2.8 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for six==1.16.0 Best match: six 1.16.0 Adding six 1.16.0 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for rsa==4.7.2 Best match: rsa 4.7.2 Adding rsa 4.7.2 to easy-install.pth file Installing pyrsa-decrypt script to /home/datamining/miniconda3/envs/bopan/bin Installing pyrsa-encrypt script to /home/datamining/miniconda3/envs/bopan/bin Installing pyrsa-keygen script to /home/datamining/miniconda3/envs/bopan/bin Installing pyrsa-priv2pub script to /home/datamining/miniconda3/envs/bopan/bin Installing pyrsa-sign script to /home/datamining/miniconda3/envs/bopan/bin Installing pyrsa-verify script to /home/datamining/miniconda3/envs/bopan/bin

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for requests-oauthlib==1.3.0 Best match: requests-oauthlib 1.3.0 Adding requests-oauthlib 1.3.0 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for importlib-metadata==4.8.2 Best match: importlib-metadata 4.8.2 Adding importlib-metadata 4.8.2 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for dataclasses==0.8 Best match: dataclasses 0.8 Adding dataclasses 0.8 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for urllib3==1.26.7 Best match: urllib3 1.26.7 Adding urllib3 1.26.7 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for idna==3.3 Best match: idna 3.3 Adding idna 3.3 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for charset-normalizer==2.0.7 Best match: charset-normalizer 2.0.7 Adding charset-normalizer 2.0.7 to easy-install.pth file Installing normalizer script to /home/datamining/miniconda3/envs/bopan/bin

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for certifi==2021.5.30 Best match: certifi 2021.5.30 Adding certifi 2021.5.30 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for smmap==5.0.0 Best match: smmap 5.0.0 Adding smmap 5.0.0 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for pyasn1==0.4.8 Best match: pyasn1 0.4.8 Adding pyasn1 0.4.8 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for oauthlib==3.1.1 Best match: oauthlib 3.1.1 Adding oauthlib 3.1.1 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Searching for zipp==3.6.0 Best match: zipp 3.6.0 Adding zipp 3.6.0 to easy-install.pth file

Using /home/datamining/miniconda3/envs/bopan/lib/python3.6/site-packages Finished processing dependencies for neuralnet-pytorch==1.0.0+unknown

justanhduc commented 2 years ago

Hi @pb0316. Seems like you didn't install the cuda addons. Could you please try the following

git clone https://github.com/justanhduc/neuralnet-pytorch
cd neuralnet-pytorch
python setup.py install --cuda-ext

I tested in a similar environment and the package works fine. Also remember to cd into another directory before importing the package.