daniilidis-group / neural_renderer

A PyTorch port of the Neural 3D Mesh Renderer
Other
1.12k stars 248 forks source link

Error while installing neural_renderer_pytorch at google colab. #97

Closed Mikor-mkr closed 3 years ago

Mikor-mkr commented 3 years ago

The error is the following, do you have any ideas how to solve it ?

Collecting neural_renderer_pytorch Downloading https://files.pythonhosted.org/packages/15/28/dd59b5098e60e75948ae414ee65700597217199591dffa22797f47914702/neural_renderer_pytorch-1.1.3.tar.gz Requirement already satisfied: torch in /usr/local/lib/python3.6/dist-packages (from neural_renderer_pytorch) (1.6.0+cu101) Requirement already satisfied: numpy in /usr/local/lib/python3.6/dist-packages (from neural_renderer_pytorch) (1.18.5) Requirement already satisfied: scikit-image in /usr/local/lib/python3.6/dist-packages (from neural_renderer_pytorch) (0.16.2) Requirement already satisfied: future in /usr/local/lib/python3.6/dist-packages (from torch->neural_renderer_pytorch) (0.16.0) Requirement already satisfied: scipy>=0.19.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image->neural_renderer_pytorch) (1.4.1) Requirement already satisfied: networkx>=2.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image->neural_renderer_pytorch) (2.5) Requirement already satisfied: matplotlib!=3.0.0,>=2.0.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image->neural_renderer_pytorch) (3.2.2) Requirement already satisfied: PyWavelets>=0.4.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image->neural_renderer_pytorch) (1.1.1) Requirement already satisfied: imageio>=2.3.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image->neural_renderer_pytorch) (2.4.1) Requirement already satisfied: pillow>=4.3.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image->neural_renderer_pytorch) (7.0.0) Requirement already satisfied: decorator>=4.3.0 in /usr/local/lib/python3.6/dist-packages (from networkx>=2.0->scikit-image->neural_renderer_pytorch) (4.4.2) Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->neural_renderer_pytorch) (1.2.0) Requirement already satisfied: python-dateutil>=2.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->neural_renderer_pytorch) (2.8.1) Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.6/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->neural_renderer_pytorch) (0.10.0) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->neural_renderer_pytorch) (2.4.7) Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.6/dist-packages (from python-dateutil>=2.1->matplotlib!=3.0.0,>=2.0.0->scikit-image->neural_renderer_pytorch) (1.15.0) Building wheels for collected packages: neural-renderer-pytorch Building wheel for neural-renderer-pytorch (setup.py) ... error ERROR: Failed building wheel for neural-renderer-pytorch Running setup.py clean for neural-renderer-pytorch Failed to build neural-renderer-pytorch Installing collected packages: neural-renderer-pytorch Running setup.py install for neural-renderer-pytorch ... error ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f9fi0mul/neural-renderer-pytorch/setup.py'"'"'; file='"'"'/tmp/pip-install-f9fi0mul/neural-renderer-pytorch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-k7kn60xc/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

Mikor-mkr commented 3 years ago

Fixed by installing pytorch 1.2

!pip install torch==1.2