DeformableFriends / NeuralTracking

Official implementation for the NeurIPS 2020 paper Neural Non-Rigid Tracking.
https://www.niessnerlab.org/projects/bozic2020nnrt.html
MIT License
188 stars 38 forks source link

Error: python example_viz.py #7

Closed joos2010kj closed 3 years ago

joos2010kj commented 3 years ago

Hello,

Thanks for the nice paper!

I wanted to reproduce the code after reading it, but I am having difficulties running it. Could you look into this issue, please?

OS: Windows 10 Setup Approach: Local Installation Response:

(nnrt) C:\Users\X\Desktop\NeuralTracking\csrc>python setup.py install No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1' running install running bdist_egg running egg_info writing NeuralNRT.egg-info\PKG-INFO writing dependency_links to NeuralNRT.egg-info\dependency_links.txt writing top-level names to NeuralNRT.egg-info\top_level.txt reading manifest file 'NeuralNRT.egg-info\SOURCES.txt' writing manifest file 'NeuralNRT.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_ext C:\Users\X\anaconda3\envs\nnrt\lib\site-packages\torch\utils\cpp_extension.py:209: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) creating build\bdist.win-amd64\egg creating build\bdist.win-amd64\egg\NeuralNRT copying build\lib.win-amd64-3.7\NeuralNRT_C.cp37-win_amd64.pyd -> build\bdist.win-amd64\egg\NeuralNRT creating stub loader for NeuralNRT_C.cp37-win_amd64.pyd byte-compiling build\bdist.win-amd64\egg\NeuralNRT_C.py to _C.cpython-37.pyc creating build\bdist.win-amd64\egg\EGG-INFO copying NeuralNRT.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO copying NeuralNRT.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO copying NeuralNRT.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO copying NeuralNRT.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt zip_safe flag not set; analyzing archive contents... NeuralNRT.pycache._C.cpython-37: module references file creating 'dist\NeuralNRT-1.0-py3.7-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it removing 'build\bdist.win-amd64\egg' (and everything under it) Processing NeuralNRT-1.0-py3.7-win-amd64.egg removing 'c:\users\X\anaconda3\envs\nnrt\lib\site-packages\NeuralNRT-1.0-py3.7-win-amd64.egg' (and everything under it) creating c:\users\X\anaconda3\envs\nnrt\lib\site-packages\NeuralNRT-1.0-py3.7-win-amd64.egg Extracting NeuralNRT-1.0-py3.7-win-amd64.egg to c:\users\X\anaconda3\envs\nnrt\lib\site-packages NeuralNRT 1.0 is already the active version in easy-install.pth

Installed c:\users\X\anaconda3\envs\nnrt\lib\site-packages\neuralnrt-1.0-py3.7-win-amd64.egg Processing dependencies for NeuralNRT==1.0 Finished processing dependencies for NeuralNRT==1.0

python example_viz.py Response:

(nnrt) C:\Users\X\Desktop\NeuralTracking>python example_viz.py Traceback (most recent call last): File "example_viz.py", line 8, in from model.model import DeformNet File "C:\Users\X\Desktop\NeuralTracking\model\model.py", line 7, in import torchvision.models as models File "C:\Users\X\anaconda3\envs\nnrt\lib\site-packages\torchvision__init.py", line 1, in from torchvision import models File "C:\Users\X\anaconda3\envs\nnrt\lib\site-packages\torchvision\models\init.py", line 11, in from . import detection File "C:\Users\X\anaconda3\envs\nnrt\lib\site-packages\torchvision\models\detection\init.py", line 1, in from .faster_rcnn import * File "C:\Users\X\anaconda3\envs\nnrt\lib\site-packages\torchvision\models\detection\faster_rcnn.py", line 7, in from torchvision.ops import misc as misc_nn_ops File "C:\Users\X\anaconda3\envs\nnrt\lib\site-packages\torchvision\ops\init__.py", line 1, in from .boxes import nms, box_iou File "C:\Users\X\anaconda3\envs\nnrt\lib\site-packages\torchvision\ops\boxes.py", line 2, in from torchvision import _C ImportError: DLL load failed: The specified module could not be found.

(nnrt) C:\Users\X\Desktop\NeuralTracking>

Thank you.

pablopalafox commented 3 years ago

Hi @joos2010kj! Thanks a lot for the interest in our paper :)

Unfortunately we never tested the code on Windows, only on Ubuntu 20.04. In any case, I looked it up and found this issue. Maybe you can try it out and let us know.

joos2010kj commented 3 years ago

Instead of Windows, I tested with Linux dualboot and it worked.

OS: Ubuntu 20.04 GPU: 2070S Nvidia Driver Version: 450 Approach: Docker