Error Installing Dependencies for Magic123 on Google Colab #51
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I am trying to run the Magic123 model in a Google Colab, but I am encountering installation errors for several packages (raymarching, shencoder, freqencoder, and gridencoder). The installation fails during the execution of install.sh, with the following error for each package
And when tryingto install them with pip setup.py install i get this error:
install_log.log
Edit: I found someone's work on the Internet, trying Magic123 in GooleColab like me, but when I compile this notebook, I get the same error as well. They didnt seem to have this error when the notebook was created.
Any tips or advice on resolving this issue would be greatly appreciated. Thank you in advance for your help!
any update?
Found the solution, the problem is related c++14 not working on google colab.
To solve the issue change c++14 to c++17 in setup.py of raymarching, shencoder, freqencoder. it should look like this:
import os
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
_src_path = os.path.dirname(os.path.abspath(file))
nvcc_flags = [
'-O3', '-std=c++17',
'-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__',
'-use_fast_math'
]
if os.name == "posix":
c_flags = ['-O3', '-std=c++17']
elif os.name == "nt":
c_flags = ['/O2', '/std:c++17']
.........
@MoeenArif1 what is
filein_src_path = os.path.dirname(os.path.abspath(file))