zhouruqin / SCANet

SCANet: A Spatial and Channel Attention based Network for Partial-to-Partial Point Cloud Registration
15 stars 2 forks source link

ImportError:No module named 'cd'. #1

Open xhuBruce opened 2 years ago

xhuBruce commented 2 years ago

您好,我在运行SCANet的时候遇到 load cd 模块失败的问题,就是chamfer_distance.py 里面的 cd= load(name="cd",sources=cources)。即程序找不到ninja编译出的动态模块,想问下您 1.这个问题怎么解决。 2.您的项目环境是什么,如:python,pytorch,torvision,cuda版本等。先谢谢了!

zhouruqin commented 2 years ago

你安装ninja了吗

------------------ 原始邮件 ------------------ 发件人: "zhouruqin/SCANet" @.>; 发送时间: 2021年12月6日(星期一) 晚上10:23 @.>; @.***>; 主题: [zhouruqin/SCANet] ImportError:No module named 'cd'. (Issue #1)

您好,我在运行SCANet的时候遇到 load cd 模块失败的问题,就是chamfer_distance.py 里面的 cd= load(name="cd",sources=cources)。即程序找不到ninja编译出的动态模块,想问下您 1.这个问题怎么解决。 2.您的项目环境是什么,如:python,pytorch,torvision,cuda版本等。先谢谢了!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

xhuBruce commented 2 years ago

装了的,下面是报错信息 (SCANet) ubuntu@ubuntu-HP-Z420-Workstation:~/桌面/Code/SCANet-master$ CUDA_VISIBLE_DEVICES=0 python main.py -o log/baseline/SSACCR1 --sampler fps --train-pcrnet --epochs 250 --noise_type crop -in 1024 /home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp ['/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.cpp', '/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.cu'] Using /tmp/torch_extensions as PyTorch extensions root... Detected CUDA files, patching ldflags Emitting ninja build file /tmp/torch_extensions/cd/build.ninja... Building extension module cd... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.7.2 Loading extension module cd... Traceback (most recent call last): File "main.py", line 12, in from models import pcrnet File "/home/ubuntu/桌面/Code/SCANet-master/models/pcrnet.py", line 8, in import src.quaternion as Q File "/home/ubuntu/桌面/Code/SCANet-master/src/init.py", line 2, in from .chamfer_distance.chamfer_distance import ChamferDistance File "/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/init.py", line 1, in from .chamfer_distance import ChamferDistance File "/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.py", line 12, in cd = load(name="cd", sources=sources,verbose=True,extra_include_paths='') File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 898, in load is_python_module) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1097, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1418, in _import_module_from_library file, path, description = imp.find_module(module_name, [path]) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/imp.py", line 297, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named 'cd'

这是我的环境: (SCANet) ubuntu@ubuntu-HP-Z420-Workstation:~/桌面/Code/SCANet-master$ conda list

packages in environment at /home/ubuntu/anaconda3/envs/SCANet:

#

Name Version Build Channel

_libgcc_mutex 0.1 main defaults _openmp_mutex 4.5 1_gnu defaults _pytorch_select 0.2 gpu_0 defaults absl-py 0.11.0 pypi_0 pypi addict 2.4.0 pypi_0 pypi anyio 3.2.1 pypi_0 pypi argon2-cffi 20.1.0 pypi_0 pypi async-generator 1.10 pypi_0 pypi attrs 20.3.0 pypi_0 pypi babel 2.9.1 pypi_0 pypi backcall 0.2.0 pypi_0 pypi blas 1.0 mkl https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free bleach 3.2.1 pypi_0 pypi bzip2 1.0.6 3 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free cached-property 1.5.2 pypi_0 pypi cachetools 4.2.0 pypi_0 pypi cairo 1.14.12 h8948797_3 defaults cd 1.1.0 pypi_0 pypi certifi 2020.6.20 pypi_0 pypi cffi 1.14.4 pypi_0 pypi chardet 4.0.0 pypi_0 pypi coloredlogs 15.0.1 py36h06a4308_0 defaults contextvars 2.4 pypi_0 pypi cudatoolkit 10.1.243 h6bb024c_0 defaults cycler 0.10.0 pypi_0 pypi daal4py 2021.2.2 py36ha9443f7_0 defaults dal 2021.2.2 h06a4308_389 defaults dataclasses 0.8 pypi_0 pypi dbus 1.13.18 hb2f20db_0 defaults decorator 4.4.2 pypi_0 pypi defusedxml 0.6.0 pypi_0 pypi deprecation 2.1.0 pypi_0 pypi easydict 1.9 pypi_0 pypi entrypoints 0.3 pypi_0 pypi et_xmlfile 1.0.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free expat 2.4.1 h2531618_2 defaults ffmpeg 4.0 hcdf2ecd_0 defaults fontconfig 2.13.1 h6c09931_0 defaults freeglut 2.8.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free freetype 2.10.4 h5ab3b9f_0 defaults future 0.18.2 pypi_0 pypi gitdb2 2.0.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free gitpython 2.1.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free glib 2.63.1 h5a9c865_0 defaults google-auth 1.24.0 pypi_0 pypi google-auth-oauthlib 0.4.2 pypi_0 pypi graphite2 1.3.14 h23475e2_0 defaults grpcio 1.34.0 pypi_0 pypi gst-plugins-base 1.14.0 hbbd80ab_1 defaults gstreamer 1.14.0 hb453b48_1 defaults h5py 3.1.0 pypi_0 pypi harfbuzz 1.8.8 hffaf4a1_0 defaults hdf5 1.10.2 hba1933b_1 defaults humanfriendly 9.2 py36h06a4308_0 defaults icu 58.2 he6710b0_3 defaults idna 2.10 pypi_0 pypi immutables 0.15 pypi_0 pypi importlib-metadata 3.3.0 pypi_0 pypi intel-openmp 2021.2.0 h06a4308_610 defaults ipykernel 5.4.2 pypi_0 pypi ipython 7.16.1 pypi_0 pypi ipython-genutils 0.2.0 pypi_0 pypi ipython_genutils 0.2.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free ipywidgets 7.6.3 pypi_0 pypi jasper 2.0.14 h07fcdf6_0 defaults jbig 2.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free jdcal 1.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free jedi 0.18.0 pypi_0 pypi jinja2 2.11.2 pypi_0 pypi joblib 1.1.0 pypi_0 pypi jpeg 9b 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free json5 0.9.6 pypi_0 pypi jsonschema 3.2.0 pypi_0 pypi jupyter-client 6.1.7 pypi_0 pypi jupyter-core 4.7.0 pypi_0 pypi jupyter-packaging 0.10.4 pypi_0 pypi jupyter-server 1.9.0 pypi_0 pypi jupyterlab 3.0.16 pypi_0 pypi jupyterlab-pygments 0.1.2 pypi_0 pypi jupyterlab-server 2.6.1 pypi_0 pypi jupyterlab-widgets 1.0.0 pypi_0 pypi kiwisolver 1.2.0 pypi_0 pypi knn-cuda 0.2 pypi_0 pypi kornia 0.6.1 pypi_0 pypi lcms2 2.12 h3be6417_0 defaults libedit 3.1 heed3624_0 defaults libffi 3.2.1 1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free libgcc-ng 9.3.0 h5101ec6_17 defaults libgfortran-ng 7.5.0 ha8ba4b0_17 defaults libgfortran4 7.5.0 ha8ba4b0_17 defaults libglu 9.0.0 hf484d3e_1 defaults libgomp 9.3.0 h5101ec6_17 defaults libopencv 3.4.2 hb342d67_1 defaults libopus 1.3.1 h7b6447c_0 defaults libpng 1.6.37 hbc83047_0 defaults libstdcxx-ng 9.3.0 hd4cf53a_17 defaults libtiff 4.2.0 h85742a9_0 defaults libuuid 1.0.3 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free libvpx 1.7.0 h439df22_0 defaults libwebp-base 1.2.0 h27cfd23_0 defaults libxcb 1.14 h7b6447c_0 defaults libxml2 2.9.12 h03d6c58_0 defaults lz4-c 1.9.3 h2531618_0 defaults markdown 3.3.3 pypi_0 pypi markupsafe 1.1.1 pypi_0 pypi matplotlib 3.3.1 0 defaults matplotlib-base 3.3.1 py36h817c723_0 defaults mistune 0.8.4 pypi_0 pypi mkl 2020.2 256 defaults mkl-service 2.3.0 py36he8ac12f_0 defaults mkl_fft 1.3.0 py36h54f3939_0 defaults mkl_random 1.1.1 py36h0573a6f_0 defaults mpi 1.0 mpich defaults mpich 3.3.2 hc856adb_0 defaults nbclassic 0.3.1 pypi_0 pypi nbclient 0.5.1 pypi_0 pypi nbconvert 6.0.7 pypi_0 pypi nbformat 5.0.8 pypi_0 pypi ncurses 6.0 h9df7e31_2 defaults nest-asyncio 1.4.3 pypi_0 pypi ninja 1.7.2 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free notebook 6.1.6 pypi_0 pypi numpy 1.19.5 pypi_0 pypi numpy-base 1.19.2 py36hfa32c7d_0 defaults oauthlib 3.1.0 pypi_0 pypi olefile 0.44 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free open3d 0.13.0 pypi_0 pypi opencv 3.4.2 py36h6fd60c2_1 defaults openjpeg 2.3.0 h05c96fa_1 defaults openpyxl 2.4.8 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free openssl 1.0.2l 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free packaging 20.8 pypi_0 pypi pandas 1.1.5 pypi_0 pypi pandocfilters 1.4.3 pypi_0 pypi parso 0.8.2 pypi_0 pypi path.py 10.3.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free pcre 8.45 h295c915_0 defaults pexpect 4.8.0 pypi_0 pypi pickleshare 0.7.5 pypi_0 pypi pillow 8.0.1 pypi_0 pypi pip 20.2.4 pypi_0 pypi pixman 0.34.0 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free plyfile 0.7.2 pypi_0 pypi prometheus-client 0.9.0 pypi_0 pypi prompt-toolkit 3.0.19 pypi_0 pypi prompt_toolkit 1.0.15 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free protobuf 3.14.0 pypi_0 pypi ptyprocess 0.7.0 pypi_0 pypi py-opencv 3.4.2 py36hb342d67_1 defaults pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pybind11 2.6.2 pypi_0 pypi pycparser 2.20 pypi_0 pypi pygments 2.9.0 pypi_0 pypi pyparsing 2.4.7 pypi_0 pypi pyqt 5.9.2 py36h05f1152_2 defaults pyrsistent 0.17.3 pypi_0 pypi python 3.6.3 h0ef2715_3 defaults python-dateutil 2.8.1 pypi_0 pypi pytorch 1.5.0 py3.6_cuda10.1.243_cudnn7.6.3_0 pytorch pytz 2020.5 pypi_0 pypi pyyaml 5.4.1 pypi_0 pypi pyzmq 20.0.0 pypi_0 pypi qt 5.9.6 h52aff34_0 defaults readline 7.0 ha6073c6_4 defaults requests 2.25.1 pypi_0 pypi requests-oauthlib 1.3.0 pypi_0 pypi requests-unixsocket 0.2.0 pypi_0 pypi rsa 4.6 pypi_0 pypi scikit-learn 0.24.0 pypi_0 pypi scikit-learn-intelex 2021.2.2 py36h06a4308_0 defaults scipy 1.5.4 pypi_0 pypi send2trash 1.5.0 pypi_0 pypi setuptools 56.1.0 pypi_0 pypi simplegeneric 0.8.1 py36_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free sip 4.19.8 py36hf484d3e_0 defaults six 1.16.0 pypi_0 pypi sklearn 0.0 pypi_0 pypi smmap2 2.0.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free sniffio 1.2.0 pypi_0 pypi sqlite 3.23.1 he433501_0 defaults tbb 2021.2.0 hff7bd54_0 defaults tensorboard 2.4.0 pypi_0 pypi tensorboard-plugin-wit 1.7.0 pypi_0 pypi tensorboardx 2.2 pypi_0 pypi terminado 0.9.2 pypi_0 pypi testpath 0.4.4 pypi_0 pypi threadpoolctl 2.1.0 pypi_0 pypi tk 8.6.10 hbc83047_0 defaults tomlkit 0.7.2 pypi_0 pypi torchvision 0.6.0 pypi_0 pypi tornado 6.1 pypi_0 pypi tqdm 4.55.0 pypi_0 pypi traitlets 4.3.3 pypi_0 pypi transforms3d 0.3.1 pypi_0 pypi typing-extensions 4.0.0 pypi_0 pypi urllib3 1.26.2 pypi_0 pypi wcwidth 0.2.5 pypi_0 pypi webencodings 0.5.1 pypi_0 pypi websocket-client 1.1.0 pypi_0 pypi werkzeug 1.0.1 pypi_0 pypi wheel 0.36.2 pypi_0 pypi widgetsnbextension 3.5.1 pypi_0 pypi xlrd 1.1.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free xz 5.2.5 h7b6447c_0 defaults zipp 3.4.0 pypi_0 pypi zlib 1.2.11 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free zstd 1.4.9 haebb681_0 defaults

xhuBruce commented 2 years ago

折腾了很久也没搞定,已经放弃了

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年12月23日(星期四) 晚上10:07 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [zhouruqin/SCANet] ImportError:No module named 'cd'. (Issue #1)

装了的,下面是报错信息 (SCANet) @.***:~/桌面/Code/SCANet-master$ CUDA_VISIBLE_DEVICES=0 python main.py -o log/baseline/SSACCR1 --sampler fps --train-pcrnet --epochs 250 --noise_type crop -in 1024 /home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp ['/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.cpp', '/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.cu'] Using /tmp/torch_extensions as PyTorch extensions root... Detected CUDA files, patching ldflags Emitting ninja build file /tmp/torch_extensions/cd/build.ninja... Building extension module cd... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.7.2 Loading extension module cd... Traceback (most recent call last): File "main.py", line 12, in from models import pcrnet File "/home/ubuntu/桌面/Code/SCANet-master/models/pcrnet.py", line 8, in import src.quaternion as Q File "/home/ubuntu/桌面/Code/SCANet-master/src/init.py", line 2, in from .chamfer_distance.chamfer_distance import ChamferDistance File "/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/init.py", line 1, in from .chamfer_distance import ChamferDistance File "/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.py", line 12, in cd = load(name="cd", sources=sources,verbose=True,extra_include_paths='') File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 898, in load is_python_module) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1097, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1418, in _import_module_from_library file, path, description = imp.find_module(module_name, [path]) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/imp.py", line 297, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named 'cd'

这是我的环境: (SCANet) @.***:~/桌面/Code/SCANet-master$ conda list

packages in environment at /home/ubuntu/anaconda3/envs/SCANet:

Name Version Build Channel

_libgcc_mutex 0.1 main defaults _openmp_mutex 4.5 1_gnu defaults _pytorch_select 0.2 gpu_0 defaults absl-py 0.11.0 pypi_0 pypi addict 2.4.0 pypi_0 pypi anyio 3.2.1 pypi_0 pypi argon2-cffi 20.1.0 pypi_0 pypi async-generator 1.10 pypi_0 pypi attrs 20.3.0 pypi_0 pypi babel 2.9.1 pypi_0 pypi backcall 0.2.0 pypi_0 pypi blas 1.0 mkl https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free bleach 3.2.1 pypi_0 pypi bzip2 1.0.6 3 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free cached-property 1.5.2 pypi_0 pypi cachetools 4.2.0 pypi_0 pypi cairo 1.14.12 h8948797_3 defaults cd 1.1.0 pypi_0 pypi certifi 2020.6.20 pypi_0 pypi cffi 1.14.4 pypi_0 pypi chardet 4.0.0 pypi_0 pypi coloredlogs 15.0.1 py36h06a4308_0 defaults contextvars 2.4 pypi_0 pypi cudatoolkit 10.1.243 h6bb024c_0 defaults cycler 0.10.0 pypi_0 pypi daal4py 2021.2.2 py36ha9443f7_0 defaults dal 2021.2.2 h06a4308_389 defaults dataclasses 0.8 pypi_0 pypi dbus 1.13.18 hb2f20db_0 defaults decorator 4.4.2 pypi_0 pypi defusedxml 0.6.0 pypi_0 pypi deprecation 2.1.0 pypi_0 pypi easydict 1.9 pypi_0 pypi entrypoints 0.3 pypi_0 pypi et_xmlfile 1.0.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free expat 2.4.1 h2531618_2 defaults ffmpeg 4.0 hcdf2ecd_0 defaults fontconfig 2.13.1 h6c09931_0 defaults freeglut 2.8.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free freetype 2.10.4 h5ab3b9f_0 defaults future 0.18.2 pypi_0 pypi gitdb2 2.0.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free gitpython 2.1.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free glib 2.63.1 h5a9c865_0 defaults google-auth 1.24.0 pypi_0 pypi google-auth-oauthlib 0.4.2 pypi_0 pypi graphite2 1.3.14 h23475e2_0 defaults grpcio 1.34.0 pypi_0 pypi gst-plugins-base 1.14.0 hbbd80ab_1 defaults gstreamer 1.14.0 hb453b48_1 defaults h5py 3.1.0 pypi_0 pypi harfbuzz 1.8.8 hffaf4a1_0 defaults hdf5 1.10.2 hba1933b_1 defaults humanfriendly 9.2 py36h06a4308_0 defaults icu 58.2 he6710b0_3 defaults idna 2.10 pypi_0 pypi immutables 0.15 pypi_0 pypi importlib-metadata 3.3.0 pypi_0 pypi intel-openmp 2021.2.0 h06a4308_610 defaults ipykernel 5.4.2 pypi_0 pypi ipython 7.16.1 pypi_0 pypi ipython-genutils 0.2.0 pypi_0 pypi ipython_genutils 0.2.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free ipywidgets 7.6.3 pypi_0 pypi jasper 2.0.14 h07fcdf6_0 defaults jbig 2.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free jdcal 1.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free jedi 0.18.0 pypi_0 pypi jinja2 2.11.2 pypi_0 pypi joblib 1.1.0 pypi_0 pypi jpeg 9b 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free json5 0.9.6 pypi_0 pypi jsonschema 3.2.0 pypi_0 pypi jupyter-client 6.1.7 pypi_0 pypi jupyter-core 4.7.0 pypi_0 pypi jupyter-packaging 0.10.4 pypi_0 pypi jupyter-server 1.9.0 pypi_0 pypi jupyterlab 3.0.16 pypi_0 pypi jupyterlab-pygments 0.1.2 pypi_0 pypi jupyterlab-server 2.6.1 pypi_0 pypi jupyterlab-widgets 1.0.0 pypi_0 pypi kiwisolver 1.2.0 pypi_0 pypi knn-cuda 0.2 pypi_0 pypi kornia 0.6.1 pypi_0 pypi lcms2 2.12 h3be6417_0 defaults libedit 3.1 heed3624_0 defaults libffi 3.2.1 1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free libgcc-ng 9.3.0 h5101ec6_17 defaults libgfortran-ng 7.5.0 ha8ba4b0_17 defaults libgfortran4 7.5.0 ha8ba4b0_17 defaults libglu 9.0.0 hf484d3e_1 defaults libgomp 9.3.0 h5101ec6_17 defaults libopencv 3.4.2 hb342d67_1 defaults libopus 1.3.1 h7b6447c_0 defaults libpng 1.6.37 hbc83047_0 defaults libstdcxx-ng 9.3.0 hd4cf53a_17 defaults libtiff 4.2.0 h85742a9_0 defaults libuuid 1.0.3 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free libvpx 1.7.0 h439df22_0 defaults libwebp-base 1.2.0 h27cfd23_0 defaults libxcb 1.14 h7b6447c_0 defaults libxml2 2.9.12 h03d6c58_0 defaults lz4-c 1.9.3 h2531618_0 defaults markdown 3.3.3 pypi_0 pypi markupsafe 1.1.1 pypi_0 pypi matplotlib 3.3.1 0 defaults matplotlib-base 3.3.1 py36h817c723_0 defaults mistune 0.8.4 pypi_0 pypi mkl 2020.2 256 defaults mkl-service 2.3.0 py36he8ac12f_0 defaults mkl_fft 1.3.0 py36h54f3939_0 defaults mkl_random 1.1.1 py36h0573a6f_0 defaults mpi 1.0 mpich defaults mpich 3.3.2 hc856adb_0 defaults nbclassic 0.3.1 pypi_0 pypi nbclient 0.5.1 pypi_0 pypi nbconvert 6.0.7 pypi_0 pypi nbformat 5.0.8 pypi_0 pypi ncurses 6.0 h9df7e31_2 defaults nest-asyncio 1.4.3 pypi_0 pypi ninja 1.7.2 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free notebook 6.1.6 pypi_0 pypi numpy 1.19.5 pypi_0 pypi numpy-base 1.19.2 py36hfa32c7d_0 defaults oauthlib 3.1.0 pypi_0 pypi olefile 0.44 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free open3d 0.13.0 pypi_0 pypi opencv 3.4.2 py36h6fd60c2_1 defaults openjpeg 2.3.0 h05c96fa_1 defaults openpyxl 2.4.8 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free openssl 1.0.2l 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free packaging 20.8 pypi_0 pypi pandas 1.1.5 pypi_0 pypi pandocfilters 1.4.3 pypi_0 pypi parso 0.8.2 pypi_0 pypi path.py 10.3.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free pcre 8.45 h295c915_0 defaults pexpect 4.8.0 pypi_0 pypi pickleshare 0.7.5 pypi_0 pypi pillow 8.0.1 pypi_0 pypi pip 20.2.4 pypi_0 pypi pixman 0.34.0 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free plyfile 0.7.2 pypi_0 pypi prometheus-client 0.9.0 pypi_0 pypi prompt-toolkit 3.0.19 pypi_0 pypi prompt_toolkit 1.0.15 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free protobuf 3.14.0 pypi_0 pypi ptyprocess 0.7.0 pypi_0 pypi py-opencv 3.4.2 py36hb342d67_1 defaults pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pybind11 2.6.2 pypi_0 pypi pycparser 2.20 pypi_0 pypi pygments 2.9.0 pypi_0 pypi pyparsing 2.4.7 pypi_0 pypi pyqt 5.9.2 py36h05f1152_2 defaults pyrsistent 0.17.3 pypi_0 pypi python 3.6.3 h0ef2715_3 defaults python-dateutil 2.8.1 pypi_0 pypi pytorch 1.5.0 py3.6_cuda10.1.243_cudnn7.6.3_0 pytorch pytz 2020.5 pypi_0 pypi pyyaml 5.4.1 pypi_0 pypi pyzmq 20.0.0 pypi_0 pypi qt 5.9.6 h52aff34_0 defaults readline 7.0 ha6073c6_4 defaults requests 2.25.1 pypi_0 pypi requests-oauthlib 1.3.0 pypi_0 pypi requests-unixsocket 0.2.0 pypi_0 pypi rsa 4.6 pypi_0 pypi scikit-learn 0.24.0 pypi_0 pypi scikit-learn-intelex 2021.2.2 py36h06a4308_0 defaults scipy 1.5.4 pypi_0 pypi send2trash 1.5.0 pypi_0 pypi setuptools 56.1.0 pypi_0 pypi simplegeneric 0.8.1 py36_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free sip 4.19.8 py36hf484d3e_0 defaults six 1.16.0 pypi_0 pypi sklearn 0.0 pypi_0 pypi smmap2 2.0.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free sniffio 1.2.0 pypi_0 pypi sqlite 3.23.1 he433501_0 defaults tbb 2021.2.0 hff7bd54_0 defaults tensorboard 2.4.0 pypi_0 pypi tensorboard-plugin-wit 1.7.0 pypi_0 pypi tensorboardx 2.2 pypi_0 pypi terminado 0.9.2 pypi_0 pypi testpath 0.4.4 pypi_0 pypi threadpoolctl 2.1.0 pypi_0 pypi tk 8.6.10 hbc83047_0 defaults tomlkit 0.7.2 pypi_0 pypi torchvision 0.6.0 pypi_0 pypi tornado 6.1 pypi_0 pypi tqdm 4.55.0 pypi_0 pypi traitlets 4.3.3 pypi_0 pypi transforms3d 0.3.1 pypi_0 pypi typing-extensions 4.0.0 pypi_0 pypi urllib3 1.26.2 pypi_0 pypi wcwidth 0.2.5 pypi_0 pypi webencodings 0.5.1 pypi_0 pypi websocket-client 1.1.0 pypi_0 pypi werkzeug 1.0.1 pypi_0 pypi wheel 0.36.2 pypi_0 pypi widgetsnbextension 3.5.1 pypi_0 pypi xlrd 1.1.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free xz 5.2.5 h7b6447c_0 defaults zipp 3.4.0 pypi_0 pypi zlib 1.2.11 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free zstd 1.4.9 haebb681_0 defaults 打扰了不好意思,我也遇到了这个问题,请问您有什么解决措施吗?

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

zhouruqin commented 2 years ago

你试试把路径里面的中文改了吧

---Original--- From: @.> Date: Wed, Dec 29, 2021 15:34 PM To: @.>; Cc: @.**@.>; Subject: Re: [zhouruqin/SCANet] ImportError:No module named 'cd'. (Issue #1)

折腾了很久也没搞定,已经放弃了

------------------ 原始邮件 ------------------ 发件人: @.>;
发送时间: 2021年12月23日(星期四) 晚上10:07 收件人:
@.>;
抄送: @.>; @.>;
主题: Re: [zhouruqin/SCANet] ImportError:No module named 'cd'. (Issue #1)

装了的,下面是报错信息 (SCANet) @.***:~/桌面/Code/SCANet-master$ CUDA_VISIBLE_DEVICES=0 python main.py -o log/baseline/SSACCR1 --sampler fps --train-pcrnet --epochs 250 --noise_type crop -in 1024 /home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp ['/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.cpp', '/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.cu'] Using /tmp/torch_extensions as PyTorch extensions root... Detected CUDA files, patching ldflags Emitting ninja build file /tmp/torch_extensions/cd/build.ninja... Building extension module cd... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.7.2 Loading extension module cd... Traceback (most recent call last): File "main.py", line 12, in from models import pcrnet File "/home/ubuntu/桌面/Code/SCANet-master/models/pcrnet.py", line 8, in import src.quaternion as Q File "/home/ubuntu/桌面/Code/SCANet-master/src/init.py", line 2, in from .chamfer_distance.chamfer_distance import ChamferDistance File "/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/init.py", line 1, in from .chamfer_distance import ChamferDistance File "/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.py", line 12, in cd = load(name="cd", sources=sources,verbose=True,extra_include_paths='') File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 898, in load is_python_module) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1097, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1418, in _import_module_from_library file, path, description = imp.find_module(module_name, [path]) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/imp.py", line 297, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named 'cd'

这是我的环境: (SCANet) @.***:~/桌面/Code/SCANet-master$ conda list

packages in environment at /home/ubuntu/anaconda3/envs/SCANet:

Name Version Build Channel

_libgcc_mutex 0.1 main defaults _openmp_mutex 4.5 1_gnu defaults _pytorch_select 0.2 gpu_0 defaults absl-py 0.11.0 pypi_0 pypi addict 2.4.0 pypi_0 pypi anyio 3.2.1 pypi_0 pypi argon2-cffi 20.1.0 pypi_0 pypi async-generator 1.10 pypi_0 pypi attrs 20.3.0 pypi_0 pypi babel 2.9.1 pypi_0 pypi backcall 0.2.0 pypi_0 pypi blas 1.0 mkl https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free bleach 3.2.1 pypi_0 pypi bzip2 1.0.6 3 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free cached-property 1.5.2 pypi_0 pypi cachetools 4.2.0 pypi_0 pypi cairo 1.14.12 h8948797_3 defaults cd 1.1.0 pypi_0 pypi certifi 2020.6.20 pypi_0 pypi cffi 1.14.4 pypi_0 pypi chardet 4.0.0 pypi_0 pypi coloredlogs 15.0.1 py36h06a4308_0 defaults contextvars 2.4 pypi_0 pypi cudatoolkit 10.1.243 h6bb024c_0 defaults cycler 0.10.0 pypi_0 pypi daal4py 2021.2.2 py36ha9443f7_0 defaults dal 2021.2.2 h06a4308_389 defaults dataclasses 0.8 pypi_0 pypi dbus 1.13.18 hb2f20db_0 defaults decorator 4.4.2 pypi_0 pypi defusedxml 0.6.0 pypi_0 pypi deprecation 2.1.0 pypi_0 pypi easydict 1.9 pypi_0 pypi entrypoints 0.3 pypi_0 pypi et_xmlfile 1.0.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free expat 2.4.1 h2531618_2 defaults ffmpeg 4.0 hcdf2ecd_0 defaults fontconfig 2.13.1 h6c09931_0 defaults freeglut 2.8.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free freetype 2.10.4 h5ab3b9f_0 defaults future 0.18.2 pypi_0 pypi gitdb2 2.0.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free gitpython 2.1.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free glib 2.63.1 h5a9c865_0 defaults google-auth 1.24.0 pypi_0 pypi google-auth-oauthlib 0.4.2 pypi_0 pypi graphite2 1.3.14 h23475e2_0 defaults grpcio 1.34.0 pypi_0 pypi gst-plugins-base 1.14.0 hbbd80ab_1 defaults gstreamer 1.14.0 hb453b48_1 defaults h5py 3.1.0 pypi_0 pypi harfbuzz 1.8.8 hffaf4a1_0 defaults hdf5 1.10.2 hba1933b_1 defaults humanfriendly 9.2 py36h06a4308_0 defaults icu 58.2 he6710b0_3 defaults idna 2.10 pypi_0 pypi immutables 0.15 pypi_0 pypi importlib-metadata 3.3.0 pypi_0 pypi intel-openmp 2021.2.0 h06a4308_610 defaults ipykernel 5.4.2 pypi_0 pypi ipython 7.16.1 pypi_0 pypi ipython-genutils 0.2.0 pypi_0 pypi ipython_genutils 0.2.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free ipywidgets 7.6.3 pypi_0 pypi jasper 2.0.14 h07fcdf6_0 defaults jbig 2.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free jdcal 1.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free jedi 0.18.0 pypi_0 pypi jinja2 2.11.2 pypi_0 pypi joblib 1.1.0 pypi_0 pypi jpeg 9b 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free json5 0.9.6 pypi_0 pypi jsonschema 3.2.0 pypi_0 pypi jupyter-client 6.1.7 pypi_0 pypi jupyter-core 4.7.0 pypi_0 pypi jupyter-packaging 0.10.4 pypi_0 pypi jupyter-server 1.9.0 pypi_0 pypi jupyterlab 3.0.16 pypi_0 pypi jupyterlab-pygments 0.1.2 pypi_0 pypi jupyterlab-server 2.6.1 pypi_0 pypi jupyterlab-widgets 1.0.0 pypi_0 pypi kiwisolver 1.2.0 pypi_0 pypi knn-cuda 0.2 pypi_0 pypi kornia 0.6.1 pypi_0 pypi lcms2 2.12 h3be6417_0 defaults libedit 3.1 heed3624_0 defaults libffi 3.2.1 1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free libgcc-ng 9.3.0 h5101ec6_17 defaults libgfortran-ng 7.5.0 ha8ba4b0_17 defaults libgfortran4 7.5.0 ha8ba4b0_17 defaults libglu 9.0.0 hf484d3e_1 defaults libgomp 9.3.0 h5101ec6_17 defaults libopencv 3.4.2 hb342d67_1 defaults libopus 1.3.1 h7b6447c_0 defaults libpng 1.6.37 hbc83047_0 defaults libstdcxx-ng 9.3.0 hd4cf53a_17 defaults libtiff 4.2.0 h85742a9_0 defaults libuuid 1.0.3 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free libvpx 1.7.0 h439df22_0 defaults libwebp-base 1.2.0 h27cfd23_0 defaults libxcb 1.14 h7b6447c_0 defaults libxml2 2.9.12 h03d6c58_0 defaults lz4-c 1.9.3 h2531618_0 defaults markdown 3.3.3 pypi_0 pypi markupsafe 1.1.1 pypi_0 pypi matplotlib 3.3.1 0 defaults matplotlib-base 3.3.1 py36h817c723_0 defaults mistune 0.8.4 pypi_0 pypi mkl 2020.2 256 defaults mkl-service 2.3.0 py36he8ac12f_0 defaults mkl_fft 1.3.0 py36h54f3939_0 defaults mkl_random 1.1.1 py36h0573a6f_0 defaults mpi 1.0 mpich defaults mpich 3.3.2 hc856adb_0 defaults nbclassic 0.3.1 pypi_0 pypi nbclient 0.5.1 pypi_0 pypi nbconvert 6.0.7 pypi_0 pypi nbformat 5.0.8 pypi_0 pypi ncurses 6.0 h9df7e31_2 defaults nest-asyncio 1.4.3 pypi_0 pypi ninja 1.7.2 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free notebook 6.1.6 pypi_0 pypi numpy 1.19.5 pypi_0 pypi numpy-base 1.19.2 py36hfa32c7d_0 defaults oauthlib 3.1.0 pypi_0 pypi olefile 0.44 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free open3d 0.13.0 pypi_0 pypi opencv 3.4.2 py36h6fd60c2_1 defaults openjpeg 2.3.0 h05c96fa_1 defaults openpyxl 2.4.8 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free openssl 1.0.2l 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free packaging 20.8 pypi_0 pypi pandas 1.1.5 pypi_0 pypi pandocfilters 1.4.3 pypi_0 pypi parso 0.8.2 pypi_0 pypi path.py 10.3.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free pcre 8.45 h295c915_0 defaults pexpect 4.8.0 pypi_0 pypi pickleshare 0.7.5 pypi_0 pypi pillow 8.0.1 pypi_0 pypi pip 20.2.4 pypi_0 pypi pixman 0.34.0 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free plyfile 0.7.2 pypi_0 pypi prometheus-client 0.9.0 pypi_0 pypi prompt-toolkit 3.0.19 pypi_0 pypi prompt_toolkit 1.0.15 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free protobuf 3.14.0 pypi_0 pypi ptyprocess 0.7.0 pypi_0 pypi py-opencv 3.4.2 py36hb342d67_1 defaults pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pybind11 2.6.2 pypi_0 pypi pycparser 2.20 pypi_0 pypi pygments 2.9.0 pypi_0 pypi pyparsing 2.4.7 pypi_0 pypi pyqt 5.9.2 py36h05f1152_2 defaults pyrsistent 0.17.3 pypi_0 pypi python 3.6.3 h0ef2715_3 defaults python-dateutil 2.8.1 pypi_0 pypi pytorch 1.5.0 py3.6_cuda10.1.243_cudnn7.6.3_0 pytorch pytz 2020.5 pypi_0 pypi pyyaml 5.4.1 pypi_0 pypi pyzmq 20.0.0 pypi_0 pypi qt 5.9.6 h52aff34_0 defaults readline 7.0 ha6073c6_4 defaults requests 2.25.1 pypi_0 pypi requests-oauthlib 1.3.0 pypi_0 pypi requests-unixsocket 0.2.0 pypi_0 pypi rsa 4.6 pypi_0 pypi scikit-learn 0.24.0 pypi_0 pypi scikit-learn-intelex 2021.2.2 py36h06a4308_0 defaults scipy 1.5.4 pypi_0 pypi send2trash 1.5.0 pypi_0 pypi setuptools 56.1.0 pypi_0 pypi simplegeneric 0.8.1 py36_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free sip 4.19.8 py36hf484d3e_0 defaults six 1.16.0 pypi_0 pypi sklearn 0.0 pypi_0 pypi smmap2 2.0.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free sniffio 1.2.0 pypi_0 pypi sqlite 3.23.1 he433501_0 defaults tbb 2021.2.0 hff7bd54_0 defaults tensorboard 2.4.0 pypi_0 pypi tensorboard-plugin-wit 1.7.0 pypi_0 pypi tensorboardx 2.2 pypi_0 pypi terminado 0.9.2 pypi_0 pypi testpath 0.4.4 pypi_0 pypi threadpoolctl 2.1.0 pypi_0 pypi tk 8.6.10 hbc83047_0 defaults tomlkit 0.7.2 pypi_0 pypi torchvision 0.6.0 pypi_0 pypi tornado 6.1 pypi_0 pypi tqdm 4.55.0 pypi_0 pypi traitlets 4.3.3 pypi_0 pypi transforms3d 0.3.1 pypi_0 pypi typing-extensions 4.0.0 pypi_0 pypi urllib3 1.26.2 pypi_0 pypi wcwidth 0.2.5 pypi_0 pypi webencodings 0.5.1 pypi_0 pypi websocket-client 1.1.0 pypi_0 pypi werkzeug 1.0.1 pypi_0 pypi wheel 0.36.2 pypi_0 pypi widgetsnbextension 3.5.1 pypi_0 pypi xlrd 1.1.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free xz 5.2.5 h7b6447c_0 defaults zipp 3.4.0 pypi_0 pypi zlib 1.2.11 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free zstd 1.4.9 haebb681_0 defaults 打扰了不好意思,我也遇到了这个问题,请问您有什么解决措施吗?

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.>

xhuBruce commented 2 years ago

之前试过了,也出同样的问题。我觉得应该是实验环境不一致导致的。 想知道你的实验环境,具体的虚拟环境的清单和cuda的版本,如果可以的话,能贴出来一下吗?

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年12月29日(星期三) 下午3:37 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [zhouruqin/SCANet] ImportError:No module named 'cd'. (Issue #1)

你试试把路径里面的中文改了吧

---Original--- From: @.> Date: Wed, Dec 29, 2021 15:34 PM To: @.>; Cc: @.**@.>; Subject: Re: [zhouruqin/SCANet] ImportError:No module named 'cd'. (Issue #1)

折腾了很久也没搞定,已经放弃了

------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2021年12月23日(星期四) 晚上10:07
收件人:
@.>;
抄送: @.>; @.>;
主题: Re: [zhouruqin/SCANet] ImportError:No module named 'cd'. (Issue #1)

装了的,下面是报错信息 (SCANet) @.***:~/桌面/Code/SCANet-master$ CUDA_VISIBLE_DEVICES=0 python main.py -o log/baseline/SSACCR1 --sampler fps --train-pcrnet --epochs 250 --noise_type crop -in 1024 /home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp ['/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.cpp', '/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.cu'] Using /tmp/torch_extensions as PyTorch extensions root... Detected CUDA files, patching ldflags Emitting ninja build file /tmp/torch_extensions/cd/build.ninja... Building extension module cd... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.7.2 Loading extension module cd... Traceback (most recent call last): File "main.py", line 12, in from models import pcrnet File "/home/ubuntu/桌面/Code/SCANet-master/models/pcrnet.py", line 8, in import src.quaternion as Q File "/home/ubuntu/桌面/Code/SCANet-master/src/init.py", line 2, in from .chamfer_distance.chamfer_distance import ChamferDistance File "/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/init.py", line 1, in from .chamfer_distance import ChamferDistance File "/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.py", line 12, in cd = load(name="cd", sources=sources,verbose=True,extra_include_paths='') File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 898, in load is_python_module) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1097, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1418, in _import_module_from_library file, path, description = imp.find_module(module_name, [path]) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/imp.py", line 297, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named 'cd'

这是我的环境: (SCANet) @.***:~/桌面/Code/SCANet-master$ conda list

packages in environment at /home/ubuntu/anaconda3/envs/SCANet:

Name Version Build Channel

_libgcc_mutex 0.1 main defaults _openmp_mutex 4.5 1_gnu defaults _pytorch_select 0.2 gpu_0 defaults absl-py 0.11.0 pypi_0 pypi addict 2.4.0 pypi_0 pypi anyio 3.2.1 pypi_0 pypi argon2-cffi 20.1.0 pypi_0 pypi async-generator 1.10 pypi_0 pypi attrs 20.3.0 pypi_0 pypi babel 2.9.1 pypi_0 pypi backcall 0.2.0 pypi_0 pypi blas 1.0 mkl https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free bleach 3.2.1 pypi_0 pypi bzip2 1.0.6 3 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free cached-property 1.5.2 pypi_0 pypi cachetools 4.2.0 pypi_0 pypi cairo 1.14.12 h8948797_3 defaults cd 1.1.0 pypi_0 pypi certifi 2020.6.20 pypi_0 pypi cffi 1.14.4 pypi_0 pypi chardet 4.0.0 pypi_0 pypi coloredlogs 15.0.1 py36h06a4308_0 defaults contextvars 2.4 pypi_0 pypi cudatoolkit 10.1.243 h6bb024c_0 defaults cycler 0.10.0 pypi_0 pypi daal4py 2021.2.2 py36ha9443f7_0 defaults dal 2021.2.2 h06a4308_389 defaults dataclasses 0.8 pypi_0 pypi dbus 1.13.18 hb2f20db_0 defaults decorator 4.4.2 pypi_0 pypi defusedxml 0.6.0 pypi_0 pypi deprecation 2.1.0 pypi_0 pypi easydict 1.9 pypi_0 pypi entrypoints 0.3 pypi_0 pypi et_xmlfile 1.0.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free expat 2.4.1 h2531618_2 defaults ffmpeg 4.0 hcdf2ecd_0 defaults fontconfig 2.13.1 h6c09931_0 defaults freeglut 2.8.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free freetype 2.10.4 h5ab3b9f_0 defaults future 0.18.2 pypi_0 pypi gitdb2 2.0.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free gitpython 2.1.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free glib 2.63.1 h5a9c865_0 defaults google-auth 1.24.0 pypi_0 pypi google-auth-oauthlib 0.4.2 pypi_0 pypi graphite2 1.3.14 h23475e2_0 defaults grpcio 1.34.0 pypi_0 pypi gst-plugins-base 1.14.0 hbbd80ab_1 defaults gstreamer 1.14.0 hb453b48_1 defaults h5py 3.1.0 pypi_0 pypi harfbuzz 1.8.8 hffaf4a1_0 defaults hdf5 1.10.2 hba1933b_1 defaults humanfriendly 9.2 py36h06a4308_0 defaults icu 58.2 he6710b0_3 defaults idna 2.10 pypi_0 pypi immutables 0.15 pypi_0 pypi importlib-metadata 3.3.0 pypi_0 pypi intel-openmp 2021.2.0 h06a4308_610 defaults ipykernel 5.4.2 pypi_0 pypi ipython 7.16.1 pypi_0 pypi ipython-genutils 0.2.0 pypi_0 pypi ipython_genutils 0.2.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free ipywidgets 7.6.3 pypi_0 pypi jasper 2.0.14 h07fcdf6_0 defaults jbig 2.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free jdcal 1.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free jedi 0.18.0 pypi_0 pypi jinja2 2.11.2 pypi_0 pypi joblib 1.1.0 pypi_0 pypi jpeg 9b 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free json5 0.9.6 pypi_0 pypi jsonschema 3.2.0 pypi_0 pypi jupyter-client 6.1.7 pypi_0 pypi jupyter-core 4.7.0 pypi_0 pypi jupyter-packaging 0.10.4 pypi_0 pypi jupyter-server 1.9.0 pypi_0 pypi jupyterlab 3.0.16 pypi_0 pypi jupyterlab-pygments 0.1.2 pypi_0 pypi jupyterlab-server 2.6.1 pypi_0 pypi jupyterlab-widgets 1.0.0 pypi_0 pypi kiwisolver 1.2.0 pypi_0 pypi knn-cuda 0.2 pypi_0 pypi kornia 0.6.1 pypi_0 pypi lcms2 2.12 h3be6417_0 defaults libedit 3.1 heed3624_0 defaults libffi 3.2.1 1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free libgcc-ng 9.3.0 h5101ec6_17 defaults libgfortran-ng 7.5.0 ha8ba4b0_17 defaults libgfortran4 7.5.0 ha8ba4b0_17 defaults libglu 9.0.0 hf484d3e_1 defaults libgomp 9.3.0 h5101ec6_17 defaults libopencv 3.4.2 hb342d67_1 defaults libopus 1.3.1 h7b6447c_0 defaults libpng 1.6.37 hbc83047_0 defaults libstdcxx-ng 9.3.0 hd4cf53a_17 defaults libtiff 4.2.0 h85742a9_0 defaults libuuid 1.0.3 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free libvpx 1.7.0 h439df22_0 defaults libwebp-base 1.2.0 h27cfd23_0 defaults libxcb 1.14 h7b6447c_0 defaults libxml2 2.9.12 h03d6c58_0 defaults lz4-c 1.9.3 h2531618_0 defaults markdown 3.3.3 pypi_0 pypi markupsafe 1.1.1 pypi_0 pypi matplotlib 3.3.1 0 defaults matplotlib-base 3.3.1 py36h817c723_0 defaults mistune 0.8.4 pypi_0 pypi mkl 2020.2 256 defaults mkl-service 2.3.0 py36he8ac12f_0 defaults mkl_fft 1.3.0 py36h54f3939_0 defaults mkl_random 1.1.1 py36h0573a6f_0 defaults mpi 1.0 mpich defaults mpich 3.3.2 hc856adb_0 defaults nbclassic 0.3.1 pypi_0 pypi nbclient 0.5.1 pypi_0 pypi nbconvert 6.0.7 pypi_0 pypi nbformat 5.0.8 pypi_0 pypi ncurses 6.0 h9df7e31_2 defaults nest-asyncio 1.4.3 pypi_0 pypi ninja 1.7.2 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free notebook 6.1.6 pypi_0 pypi numpy 1.19.5 pypi_0 pypi numpy-base 1.19.2 py36hfa32c7d_0 defaults oauthlib 3.1.0 pypi_0 pypi olefile 0.44 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free open3d 0.13.0 pypi_0 pypi opencv 3.4.2 py36h6fd60c2_1 defaults openjpeg 2.3.0 h05c96fa_1 defaults openpyxl 2.4.8 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free openssl 1.0.2l 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free packaging 20.8 pypi_0 pypi pandas 1.1.5 pypi_0 pypi pandocfilters 1.4.3 pypi_0 pypi parso 0.8.2 pypi_0 pypi path.py 10.3.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free pcre 8.45 h295c915_0 defaults pexpect 4.8.0 pypi_0 pypi pickleshare 0.7.5 pypi_0 pypi pillow 8.0.1 pypi_0 pypi pip 20.2.4 pypi_0 pypi pixman 0.34.0 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free plyfile 0.7.2 pypi_0 pypi prometheus-client 0.9.0 pypi_0 pypi prompt-toolkit 3.0.19 pypi_0 pypi prompt_toolkit 1.0.15 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free protobuf 3.14.0 pypi_0 pypi ptyprocess 0.7.0 pypi_0 pypi py-opencv 3.4.2 py36hb342d67_1 defaults pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pybind11 2.6.2 pypi_0 pypi pycparser 2.20 pypi_0 pypi pygments 2.9.0 pypi_0 pypi pyparsing 2.4.7 pypi_0 pypi pyqt 5.9.2 py36h05f1152_2 defaults pyrsistent 0.17.3 pypi_0 pypi python 3.6.3 h0ef2715_3 defaults python-dateutil 2.8.1 pypi_0 pypi pytorch 1.5.0 py3.6_cuda10.1.243_cudnn7.6.3_0 pytorch pytz 2020.5 pypi_0 pypi pyyaml 5.4.1 pypi_0 pypi pyzmq 20.0.0 pypi_0 pypi qt 5.9.6 h52aff34_0 defaults readline 7.0 ha6073c6_4 defaults requests 2.25.1 pypi_0 pypi requests-oauthlib 1.3.0 pypi_0 pypi requests-unixsocket 0.2.0 pypi_0 pypi rsa 4.6 pypi_0 pypi scikit-learn 0.24.0 pypi_0 pypi scikit-learn-intelex 2021.2.2 py36h06a4308_0 defaults scipy 1.5.4 pypi_0 pypi send2trash 1.5.0 pypi_0 pypi setuptools 56.1.0 pypi_0 pypi simplegeneric 0.8.1 py36_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free sip 4.19.8 py36hf484d3e_0 defaults six 1.16.0 pypi_0 pypi sklearn 0.0 pypi_0 pypi smmap2 2.0.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free sniffio 1.2.0 pypi_0 pypi sqlite 3.23.1 he433501_0 defaults tbb 2021.2.0 hff7bd54_0 defaults tensorboard 2.4.0 pypi_0 pypi tensorboard-plugin-wit 1.7.0 pypi_0 pypi tensorboardx 2.2 pypi_0 pypi terminado 0.9.2 pypi_0 pypi testpath 0.4.4 pypi_0 pypi threadpoolctl 2.1.0 pypi_0 pypi tk 8.6.10 hbc83047_0 defaults tomlkit 0.7.2 pypi_0 pypi torchvision 0.6.0 pypi_0 pypi tornado 6.1 pypi_0 pypi tqdm 4.55.0 pypi_0 pypi traitlets 4.3.3 pypi_0 pypi transforms3d 0.3.1 pypi_0 pypi typing-extensions 4.0.0 pypi_0 pypi urllib3 1.26.2 pypi_0 pypi wcwidth 0.2.5 pypi_0 pypi webencodings 0.5.1 pypi_0 pypi websocket-client 1.1.0 pypi_0 pypi werkzeug 1.0.1 pypi_0 pypi wheel 0.36.2 pypi_0 pypi widgetsnbextension 3.5.1 pypi_0 pypi xlrd 1.1.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free xz 5.2.5 h7b6447c_0 defaults zipp 3.4.0 pypi_0 pypi zlib 1.2.11 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free zstd 1.4.9 haebb681_0 defaults
打扰了不好意思,我也遇到了这个问题,请问您有什么解决措施吗?


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.>
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID:
@.> — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

iiamber commented 2 years ago

折腾了很久也没搞定,已经放弃了 ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年12月23日(星期四) 晚上10:07 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [zhouruqin/SCANet] ImportError:No module named 'cd'. (Issue #1) 装了的,下面是报错信息 (SCANet) @.:~/桌面/Code/SCANet-master$ CUDA_VISIBLE_DEVICES=0 python main.py -o log/baseline/SSACCR1 --sampler fps --train-pcrnet --epochs 250 --noise_type crop -in 1024 /home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp ['/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.cpp', '/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.cu'] Using /tmp/torch_extensions as PyTorch extensions root... Detected CUDA files, patching ldflags Emitting ninja build file /tmp/torch_extensions/cd/build.ninja... Building extension module cd... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.7.2 Loading extension module cd... Traceback (most recent call last): File "main.py", line 12, in from models import pcrnet File "/home/ubuntu/桌面/Code/SCANet-master/models/pcrnet.py", line 8, in import src.quaternion as Q File "/home/ubuntu/桌面/Code/SCANet-master/src/init.py", line 2, in from .chamfer_distance.chamfer_distance import ChamferDistance File "/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/init.py", line 1, in from .chamfer_distance import ChamferDistance File "/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.py", line 12, in cd = load(name="cd", sources=sources,verbose=True,extra_include_paths='') File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 898, in load is_python_module) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1097, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1418, in _import_module_from_library file, path, description = imp.find_module(module_name, [path]) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/imp.py", line 297, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named 'cd' 这是我的环境: (SCANet) @.:~/桌面/Code/SCANet-master$ conda list packages in environment at /home/ubuntu/anaconda3/envs/SCANet: Name Version Build Channel _libgcc_mutex 0.1 main defaults _openmp_mutex 4.5 1_gnu defaults _pytorch_select 0.2 gpu_0 defaults absl-py 0.11.0 pypi_0 pypi addict 2.4.0 pypi_0 pypi anyio 3.2.1 pypi_0 pypi argon2-cffi 20.1.0 pypi_0 pypi async-generator 1.10 pypi_0 pypi attrs 20.3.0 pypi_0 pypi babel 2.9.1 pypi_0 pypi backcall 0.2.0 pypi_0 pypi blas 1.0 mkl https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free bleach 3.2.1 pypi_0 pypi bzip2 1.0.6 3 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free cached-property 1.5.2 pypi_0 pypi cachetools 4.2.0 pypi_0 pypi cairo 1.14.12 h8948797_3 defaults cd 1.1.0 pypi_0 pypi certifi 2020.6.20 pypi_0 pypi cffi 1.14.4 pypi_0 pypi chardet 4.0.0 pypi_0 pypi coloredlogs 15.0.1 py36h06a4308_0 defaults contextvars 2.4 pypi_0 pypi cudatoolkit 10.1.243 h6bb024c_0 defaults cycler 0.10.0 pypi_0 pypi daal4py 2021.2.2 py36ha9443f7_0 defaults dal 2021.2.2 h06a4308_389 defaults dataclasses 0.8 pypi_0 pypi dbus 1.13.18 hb2f20db_0 defaults decorator 4.4.2 pypi_0 pypi defusedxml 0.6.0 pypi_0 pypi deprecation 2.1.0 pypi_0 pypi easydict 1.9 pypi_0 pypi entrypoints 0.3 pypi_0 pypi et_xmlfile 1.0.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free expat 2.4.1 h2531618_2 defaults ffmpeg 4.0 hcdf2ecd_0 defaults fontconfig 2.13.1 h6c09931_0 defaults freeglut 2.8.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free freetype 2.10.4 h5ab3b9f_0 defaults future 0.18.2 pypi_0 pypi gitdb2 2.0.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free gitpython 2.1.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free glib 2.63.1 h5a9c865_0 defaults google-auth 1.24.0 pypi_0 pypi google-auth-oauthlib 0.4.2 pypi_0 pypi graphite2 1.3.14 h23475e2_0 defaults grpcio 1.34.0 pypi_0 pypi gst-plugins-base 1.14.0 hbbd80ab_1 defaults gstreamer 1.14.0 hb453b48_1 defaults h5py 3.1.0 pypi_0 pypi harfbuzz 1.8.8 hffaf4a1_0 defaults hdf5 1.10.2 hba1933b_1 defaults humanfriendly 9.2 py36h06a4308_0 defaults icu 58.2 he6710b0_3 defaults idna 2.10 pypi_0 pypi immutables 0.15 pypi_0 pypi importlib-metadata 3.3.0 pypi_0 pypi intel-openmp 2021.2.0 h06a4308_610 defaults ipykernel 5.4.2 pypi_0 pypi ipython 7.16.1 pypi_0 pypi ipython-genutils 0.2.0 pypi_0 pypi ipython_genutils 0.2.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free ipywidgets 7.6.3 pypi_0 pypi jasper 2.0.14 h07fcdf6_0 defaults jbig 2.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free jdcal 1.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free jedi 0.18.0 pypi_0 pypi jinja2 2.11.2 pypi_0 pypi joblib 1.1.0 pypi_0 pypi jpeg 9b 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free json5 0.9.6 pypi_0 pypi jsonschema 3.2.0 pypi_0 pypi jupyter-client 6.1.7 pypi_0 pypi jupyter-core 4.7.0 pypi_0 pypi jupyter-packaging 0.10.4 pypi_0 pypi jupyter-server 1.9.0 pypi_0 pypi jupyterlab 3.0.16 pypi_0 pypi jupyterlab-pygments 0.1.2 pypi_0 pypi jupyterlab-server 2.6.1 pypi_0 pypi jupyterlab-widgets 1.0.0 pypi_0 pypi kiwisolver 1.2.0 pypi_0 pypi knn-cuda 0.2 pypi_0 pypi kornia 0.6.1 pypi_0 pypi lcms2 2.12 h3be6417_0 defaults libedit 3.1 heed3624_0 defaults libffi 3.2.1 1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free libgcc-ng 9.3.0 h5101ec6_17 defaults libgfortran-ng 7.5.0 ha8ba4b0_17 defaults libgfortran4 7.5.0 ha8ba4b0_17 defaults libglu 9.0.0 hf484d3e_1 defaults libgomp 9.3.0 h5101ec6_17 defaults libopencv 3.4.2 hb342d67_1 defaults libopus 1.3.1 h7b6447c_0 defaults libpng 1.6.37 hbc83047_0 defaults libstdcxx-ng 9.3.0 hd4cf53a_17 defaults libtiff 4.2.0 h85742a9_0 defaults libuuid 1.0.3 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free libvpx 1.7.0 h439df22_0 defaults libwebp-base 1.2.0 h27cfd23_0 defaults libxcb 1.14 h7b6447c_0 defaults libxml2 2.9.12 h03d6c58_0 defaults lz4-c 1.9.3 h2531618_0 defaults markdown 3.3.3 pypi_0 pypi markupsafe 1.1.1 pypi_0 pypi matplotlib 3.3.1 0 defaults matplotlib-base 3.3.1 py36h817c723_0 defaults mistune 0.8.4 pypi_0 pypi mkl 2020.2 256 defaults mkl-service 2.3.0 py36he8ac12f_0 defaults mkl_fft 1.3.0 py36h54f3939_0 defaults mkl_random 1.1.1 py36h0573a6f_0 defaults mpi 1.0 mpich defaults mpich 3.3.2 hc856adb_0 defaults nbclassic 0.3.1 pypi_0 pypi nbclient 0.5.1 pypi_0 pypi nbconvert 6.0.7 pypi_0 pypi nbformat 5.0.8 pypi_0 pypi ncurses 6.0 h9df7e31_2 defaults nest-asyncio 1.4.3 pypi_0 pypi ninja 1.7.2 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free notebook 6.1.6 pypi_0 pypi numpy 1.19.5 pypi_0 pypi numpy-base 1.19.2 py36hfa32c7d_0 defaults oauthlib 3.1.0 pypi_0 pypi olefile 0.44 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free open3d 0.13.0 pypi_0 pypi opencv 3.4.2 py36h6fd60c2_1 defaults openjpeg 2.3.0 h05c96fa_1 defaults openpyxl 2.4.8 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free openssl 1.0.2l 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free packaging 20.8 pypi_0 pypi pandas 1.1.5 pypi_0 pypi pandocfilters 1.4.3 pypi_0 pypi parso 0.8.2 pypi_0 pypi path.py 10.3.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free pcre 8.45 h295c915_0 defaults pexpect 4.8.0 pypi_0 pypi pickleshare 0.7.5 pypi_0 pypi pillow 8.0.1 pypi_0 pypi pip 20.2.4 pypi_0 pypi pixman 0.34.0 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free plyfile 0.7.2 pypi_0 pypi prometheus-client 0.9.0 pypi_0 pypi prompt-toolkit 3.0.19 pypi_0 pypi prompt_toolkit 1.0.15 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free protobuf 3.14.0 pypi_0 pypi ptyprocess 0.7.0 pypi_0 pypi py-opencv 3.4.2 py36hb342d67_1 defaults pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pybind11 2.6.2 pypi_0 pypi pycparser 2.20 pypi_0 pypi pygments 2.9.0 pypi_0 pypi pyparsing 2.4.7 pypi_0 pypi pyqt 5.9.2 py36h05f1152_2 defaults pyrsistent 0.17.3 pypi_0 pypi python 3.6.3 h0ef2715_3 defaults python-dateutil 2.8.1 pypi_0 pypi pytorch 1.5.0 py3.6_cuda10.1.243_cudnn7.6.3_0 pytorch pytz 2020.5 pypi_0 pypi pyyaml 5.4.1 pypi_0 pypi pyzmq 20.0.0 pypi_0 pypi qt 5.9.6 h52aff34_0 defaults readline 7.0 ha6073c6_4 defaults requests 2.25.1 pypi_0 pypi requests-oauthlib 1.3.0 pypi_0 pypi requests-unixsocket 0.2.0 pypi_0 pypi rsa 4.6 pypi_0 pypi scikit-learn 0.24.0 pypi_0 pypi scikit-learn-intelex 2021.2.2 py36h06a4308_0 defaults scipy 1.5.4 pypi_0 pypi send2trash 1.5.0 pypi_0 pypi setuptools 56.1.0 pypi_0 pypi simplegeneric 0.8.1 py36_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free sip 4.19.8 py36hf484d3e_0 defaults six 1.16.0 pypi_0 pypi sklearn 0.0 pypi_0 pypi smmap2 2.0.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free sniffio 1.2.0 pypi_0 pypi sqlite 3.23.1 he433501_0 defaults tbb 2021.2.0 hff7bd54_0 defaults tensorboard 2.4.0 pypi_0 pypi tensorboard-plugin-wit 1.7.0 pypi_0 pypi tensorboardx 2.2 pypi_0 pypi terminado 0.9.2 pypi_0 pypi testpath 0.4.4 pypi_0 pypi threadpoolctl 2.1.0 pypi_0 pypi tk 8.6.10 hbc83047_0 defaults tomlkit 0.7.2 pypi_0 pypi torchvision 0.6.0 pypi_0 pypi tornado 6.1 pypi_0 pypi tqdm 4.55.0 pypi_0 pypi traitlets 4.3.3 pypi_0 pypi transforms3d 0.3.1 pypi_0 pypi typing-extensions 4.0.0 pypi_0 pypi urllib3 1.26.2 pypi_0 pypi wcwidth 0.2.5 pypi_0 pypi webencodings 0.5.1 pypi_0 pypi websocket-client 1.1.0 pypi_0 pypi werkzeug 1.0.1 pypi_0 pypi wheel 0.36.2 pypi_0 pypi widgetsnbextension 3.5.1 pypi_0 pypi xlrd 1.1.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free xz 5.2.5 h7b6447c_0 defaults zipp 3.4.0 pypi_0 pypi zlib 1.2.11 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free zstd 1.4.9 haebb681_0 defaults 打扰了不好意思,我也遇到了这个问题,请问您有什么解决措施吗? — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

要不试一下pytorch1.3+cuda10?我在1.4环境下也出现了这个问题,换成1.3之后成功过一次,但是之后跑着跑着又报了这个错。

zhouruqin commented 2 years ago

torch 1.10.0,cuda11.0

---Original--- From: @.> Date: Wed, Dec 29, 2021 15:49 PM To: @.>; Cc: @.**@.>; Subject: Re: [zhouruqin/SCANet] ImportError:No module named 'cd'. (Issue #1)

之前试过了,也出同样的问题。我觉得应该是实验环境不一致导致的。 想知道你的实验环境,具体的虚拟环境的清单和cuda的版本,如果可以的话,能贴出来一下吗?

------------------ 原始邮件 ------------------ 发件人: @.>;
发送时间: 2021年12月29日(星期三) 下午3:37 收件人:
@.>;
抄送: @.>; @.>;
主题: Re: [zhouruqin/SCANet] ImportError:No module named 'cd'. (Issue #1)

你试试把路径里面的中文改了吧

---Original---
From: @.>
Date: Wed, Dec 29, 2021 15:34 PM
To:
@.>;
Cc: @.**@.>;
Subject: Re: [zhouruqin/SCANet] ImportError:No module named 'cd'. (Issue #1)

折腾了很久也没搞定,已经放弃了

------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2021年12月23日(星期四) 晚上10:07
收件人:
@.>;
抄送: @.>; @.>;
主题: Re: [zhouruqin/SCANet] ImportError:No module named 'cd'. (Issue #1)

装了的,下面是报错信息 (SCANet) @.***:~/桌面/Code/SCANet-master$ CUDA_VISIBLE_DEVICES=0 python main.py -o log/baseline/SSACCR1 --sampler fps --train-pcrnet --epochs 250 --noise_type crop -in 1024 /home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp ['/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.cpp', '/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.cu'] Using /tmp/torch_extensions as PyTorch extensions root... Detected CUDA files, patching ldflags Emitting ninja build file /tmp/torch_extensions/cd/build.ninja... Building extension module cd... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.7.2 Loading extension module cd... Traceback (most recent call last): File "main.py", line 12, in from models import pcrnet File "/home/ubuntu/桌面/Code/SCANet-master/models/pcrnet.py", line 8, in import src.quaternion as Q File "/home/ubuntu/桌面/Code/SCANet-master/src/init.py", line 2, in from .chamfer_distance.chamfer_distance import ChamferDistance File "/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/init.py", line 1, in from .chamfer_distance import ChamferDistance File "/home/ubuntu/桌面/Code/SCANet-master/src/chamfer_distance/chamfer_distance.py", line 12, in cd = load(name="cd", sources=sources,verbose=True,extra_include_paths='') File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 898, in load is_python_module) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1097, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1418, in _import_module_from_library file, path, description = imp.find_module(module_name, [path]) File "/home/ubuntu/anaconda3/envs/SCANet/lib/python3.6/imp.py", line 297, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named 'cd'

这是我的环境: (SCANet) @.***:~/桌面/Code/SCANet-master$ conda list

packages in environment at /home/ubuntu/anaconda3/envs/SCANet:

Name Version Build Channel

_libgcc_mutex 0.1 main defaults _openmp_mutex 4.5 1_gnu defaults _pytorch_select 0.2 gpu_0 defaults absl-py 0.11.0 pypi_0 pypi addict 2.4.0 pypi_0 pypi anyio 3.2.1 pypi_0 pypi argon2-cffi 20.1.0 pypi_0 pypi async-generator 1.10 pypi_0 pypi attrs 20.3.0 pypi_0 pypi babel 2.9.1 pypi_0 pypi backcall 0.2.0 pypi_0 pypi blas 1.0 mkl https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free bleach 3.2.1 pypi_0 pypi bzip2 1.0.6 3 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free cached-property 1.5.2 pypi_0 pypi cachetools 4.2.0 pypi_0 pypi cairo 1.14.12 h8948797_3 defaults cd 1.1.0 pypi_0 pypi certifi 2020.6.20 pypi_0 pypi cffi 1.14.4 pypi_0 pypi chardet 4.0.0 pypi_0 pypi coloredlogs 15.0.1 py36h06a4308_0 defaults contextvars 2.4 pypi_0 pypi cudatoolkit 10.1.243 h6bb024c_0 defaults cycler 0.10.0 pypi_0 pypi daal4py 2021.2.2 py36ha9443f7_0 defaults dal 2021.2.2 h06a4308_389 defaults dataclasses 0.8 pypi_0 pypi dbus 1.13.18 hb2f20db_0 defaults decorator 4.4.2 pypi_0 pypi defusedxml 0.6.0 pypi_0 pypi deprecation 2.1.0 pypi_0 pypi easydict 1.9 pypi_0 pypi entrypoints 0.3 pypi_0 pypi et_xmlfile 1.0.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free expat 2.4.1 h2531618_2 defaults ffmpeg 4.0 hcdf2ecd_0 defaults fontconfig 2.13.1 h6c09931_0 defaults freeglut 2.8.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free freetype 2.10.4 h5ab3b9f_0 defaults future 0.18.2 pypi_0 pypi gitdb2 2.0.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free gitpython 2.1.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free glib 2.63.1 h5a9c865_0 defaults google-auth 1.24.0 pypi_0 pypi google-auth-oauthlib 0.4.2 pypi_0 pypi graphite2 1.3.14 h23475e2_0 defaults grpcio 1.34.0 pypi_0 pypi gst-plugins-base 1.14.0 hbbd80ab_1 defaults gstreamer 1.14.0 hb453b48_1 defaults h5py 3.1.0 pypi_0 pypi harfbuzz 1.8.8 hffaf4a1_0 defaults hdf5 1.10.2 hba1933b_1 defaults humanfriendly 9.2 py36h06a4308_0 defaults icu 58.2 he6710b0_3 defaults idna 2.10 pypi_0 pypi immutables 0.15 pypi_0 pypi importlib-metadata 3.3.0 pypi_0 pypi intel-openmp 2021.2.0 h06a4308_610 defaults ipykernel 5.4.2 pypi_0 pypi ipython 7.16.1 pypi_0 pypi ipython-genutils 0.2.0 pypi_0 pypi ipython_genutils 0.2.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free ipywidgets 7.6.3 pypi_0 pypi jasper 2.0.14 h07fcdf6_0 defaults jbig 2.1 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free jdcal 1.3 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free jedi 0.18.0 pypi_0 pypi jinja2 2.11.2 pypi_0 pypi joblib 1.1.0 pypi_0 pypi jpeg 9b 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free json5 0.9.6 pypi_0 pypi jsonschema 3.2.0 pypi_0 pypi jupyter-client 6.1.7 pypi_0 pypi jupyter-core 4.7.0 pypi_0 pypi jupyter-packaging 0.10.4 pypi_0 pypi jupyter-server 1.9.0 pypi_0 pypi jupyterlab 3.0.16 pypi_0 pypi jupyterlab-pygments 0.1.2 pypi_0 pypi jupyterlab-server 2.6.1 pypi_0 pypi jupyterlab-widgets 1.0.0 pypi_0 pypi kiwisolver 1.2.0 pypi_0 pypi knn-cuda 0.2 pypi_0 pypi kornia 0.6.1 pypi_0 pypi lcms2 2.12 h3be6417_0 defaults libedit 3.1 heed3624_0 defaults libffi 3.2.1 1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free libgcc-ng 9.3.0 h5101ec6_17 defaults libgfortran-ng 7.5.0 ha8ba4b0_17 defaults libgfortran4 7.5.0 ha8ba4b0_17 defaults libglu 9.0.0 hf484d3e_1 defaults libgomp 9.3.0 h5101ec6_17 defaults libopencv 3.4.2 hb342d67_1 defaults libopus 1.3.1 h7b6447c_0 defaults libpng 1.6.37 hbc83047_0 defaults libstdcxx-ng 9.3.0 hd4cf53a_17 defaults libtiff 4.2.0 h85742a9_0 defaults libuuid 1.0.3 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free libvpx 1.7.0 h439df22_0 defaults libwebp-base 1.2.0 h27cfd23_0 defaults libxcb 1.14 h7b6447c_0 defaults libxml2 2.9.12 h03d6c58_0 defaults lz4-c 1.9.3 h2531618_0 defaults markdown 3.3.3 pypi_0 pypi markupsafe 1.1.1 pypi_0 pypi matplotlib 3.3.1 0 defaults matplotlib-base 3.3.1 py36h817c723_0 defaults mistune 0.8.4 pypi_0 pypi mkl 2020.2 256 defaults mkl-service 2.3.0 py36he8ac12f_0 defaults mkl_fft 1.3.0 py36h54f3939_0 defaults mkl_random 1.1.1 py36h0573a6f_0 defaults mpi 1.0 mpich defaults mpich 3.3.2 hc856adb_0 defaults nbclassic 0.3.1 pypi_0 pypi nbclient 0.5.1 pypi_0 pypi nbconvert 6.0.7 pypi_0 pypi nbformat 5.0.8 pypi_0 pypi ncurses 6.0 h9df7e31_2 defaults nest-asyncio 1.4.3 pypi_0 pypi ninja 1.7.2 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free notebook 6.1.6 pypi_0 pypi numpy 1.19.5 pypi_0 pypi numpy-base 1.19.2 py36hfa32c7d_0 defaults oauthlib 3.1.0 pypi_0 pypi olefile 0.44 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free open3d 0.13.0 pypi_0 pypi opencv 3.4.2 py36h6fd60c2_1 defaults openjpeg 2.3.0 h05c96fa_1 defaults openpyxl 2.4.8 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free openssl 1.0.2l 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free packaging 20.8 pypi_0 pypi pandas 1.1.5 pypi_0 pypi pandocfilters 1.4.3 pypi_0 pypi parso 0.8.2 pypi_0 pypi path.py 10.3.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free pcre 8.45 h295c915_0 defaults pexpect 4.8.0 pypi_0 pypi pickleshare 0.7.5 pypi_0 pypi pillow 8.0.1 pypi_0 pypi pip 20.2.4 pypi_0 pypi pixman 0.34.0 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free plyfile 0.7.2 pypi_0 pypi prometheus-client 0.9.0 pypi_0 pypi prompt-toolkit 3.0.19 pypi_0 pypi prompt_toolkit 1.0.15 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free protobuf 3.14.0 pypi_0 pypi ptyprocess 0.7.0 pypi_0 pypi py-opencv 3.4.2 py36hb342d67_1 defaults pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pybind11 2.6.2 pypi_0 pypi pycparser 2.20 pypi_0 pypi pygments 2.9.0 pypi_0 pypi pyparsing 2.4.7 pypi_0 pypi pyqt 5.9.2 py36h05f1152_2 defaults pyrsistent 0.17.3 pypi_0 pypi python 3.6.3 h0ef2715_3 defaults python-dateutil 2.8.1 pypi_0 pypi pytorch 1.5.0 py3.6_cuda10.1.243_cudnn7.6.3_0 pytorch pytz 2020.5 pypi_0 pypi pyyaml 5.4.1 pypi_0 pypi pyzmq 20.0.0 pypi_0 pypi qt 5.9.6 h52aff34_0 defaults readline 7.0 ha6073c6_4 defaults requests 2.25.1 pypi_0 pypi requests-oauthlib 1.3.0 pypi_0 pypi requests-unixsocket 0.2.0 pypi_0 pypi rsa 4.6 pypi_0 pypi scikit-learn 0.24.0 pypi_0 pypi scikit-learn-intelex 2021.2.2 py36h06a4308_0 defaults scipy 1.5.4 pypi_0 pypi send2trash 1.5.0 pypi_0 pypi setuptools 56.1.0 pypi_0 pypi simplegeneric 0.8.1 py36_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free sip 4.19.8 py36hf484d3e_0 defaults six 1.16.0 pypi_0 pypi sklearn 0.0 pypi_0 pypi smmap2 2.0.1 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free sniffio 1.2.0 pypi_0 pypi sqlite 3.23.1 he433501_0 defaults tbb 2021.2.0 hff7bd54_0 defaults tensorboard 2.4.0 pypi_0 pypi tensorboard-plugin-wit 1.7.0 pypi_0 pypi tensorboardx 2.2 pypi_0 pypi terminado 0.9.2 pypi_0 pypi testpath 0.4.4 pypi_0 pypi threadpoolctl 2.1.0 pypi_0 pypi tk 8.6.10 hbc83047_0 defaults tomlkit 0.7.2 pypi_0 pypi torchvision 0.6.0 pypi_0 pypi tornado 6.1 pypi_0 pypi tqdm 4.55.0 pypi_0 pypi traitlets 4.3.3 pypi_0 pypi transforms3d 0.3.1 pypi_0 pypi typing-extensions 4.0.0 pypi_0 pypi urllib3 1.26.2 pypi_0 pypi wcwidth 0.2.5 pypi_0 pypi webencodings 0.5.1 pypi_0 pypi websocket-client 1.1.0 pypi_0 pypi werkzeug 1.0.1 pypi_0 pypi wheel 0.36.2 pypi_0 pypi widgetsnbextension 3.5.1 pypi_0 pypi xlrd 1.1.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free xz 5.2.5 h7b6447c_0 defaults zipp 3.4.0 pypi_0 pypi zlib 1.2.11 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free zstd 1.4.9 haebb681_0 defaults
打扰了不好意思,我也遇到了这个问题,请问您有什么解决措施吗?


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.>

Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID:
@.>
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.>