daniilidis-group / neural_renderer

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

RuntimeError: Error compiling objects for extension even after changing the ``AT_CHECK`` #142

Closed rohit7044 closed 1 year ago

rohit7044 commented 1 year ago

I am getting this following error. I have cloned this repository which supports cuda 10 above. The error shows something in rasterize_cuda.cpp but I am not sure what. My system: pyTorch=1.13.1 Cuda=11.6 GPU -RTX3060 (thesis) D:\Github Repo Connected\neural_renderer>python setup.py install running install C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( running bdist_egg running egg_info writing neural_renderer_pytorch.egg-info\PKG-INFO writing dependency_links to neural_renderer_pytorch.egg-info\dependency_links.txt writing top-level names to neural_renderer_pytorch.egg-info\top_level.txt reading manifest file 'neural_renderer_pytorch.egg-info\SOURCES.txt' adding license file 'LICENSE' writing manifest file 'neural_renderer_pytorch.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py running build_ext C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\utils\cpp_extension.py:358: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'neural_renderer.cuda.load_textures' extension Emitting ninja build file D:\Github Repo Connected\neural_renderer\build\temp.win-amd64-cpython-38\Release\build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/2] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -IC:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include -IC:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\TH -IC:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -IC:\ProgramData\Anaconda3\envs\thesis\include -IC:\ProgramData\Anaconda3\envs\thesis\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" -c "D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\load_textures_cuda.cpp" /Fo"D:\Github Repo Connected\neural_renderer\build\temp.win-amd64-cpython-38\Release\neural_renderer/cuda/load_textures_cuda.obj" -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/macros/Macros.h(138): warning C4067: unexpected tokens following preprocessor directive - expected a newline

rohit7044 commented 1 year ago

C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::SymInt ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=c10::SymInt ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(554): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=c10::SymInt ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(554): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/core/TensorImpl.h(1580): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=c10::SymInt ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/core/TensorImpl.h(2688): warning C4805: '|': unsafe mix of type 'uintptr_t' and type 'bool' in operation C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=at::TensorBase ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=at::TensorBase ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(554): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=at::TensorBase ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(554): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\ATen/core/TensorBase.h(933): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=at::TensorBase ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=at::Tensor ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=at::Tensor ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(554): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=at::Tensor ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(554): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\ATen/core/TensorBody.h(512): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=at::Tensor ]

rohit7044 commented 1 year ago

C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=at::Generator ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=at::Generator ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(554): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=at::Generator ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(554): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\ATen/core/TensorBody.h(589): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=at::Generator ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::Scalar ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=c10::Scalar ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(554): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=c10::Scalar ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(554): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\ATen/core/TensorBody.h(617): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=c10::Scalar ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=std::string ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled with [ T=std::string ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(554): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled with [ T=std::string ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(554): note: see reference to alias template instantiation 'c10::OptionalBase' being compiled C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\ATen/core/jit_type_base.h(450): note: see reference to class template instantiation 'c10::optional' being compiled C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted with [ T=std::string ] C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted with [ T=c10::QualifiedName ]

rohit7044 commented 1 year ago

C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\include\pybind11\detail/common.h(152): warning C4005: 'HAVE_SNPRINTF': macro redefinition C:\ProgramData\Anaconda3\envs\thesis\include\pyerrors.h(315): note: see previous definition of 'HAVE_SNPRINTF' D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(84): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(85): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(86): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(87): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(88): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(89): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(109): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(110): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(111): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(112): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(113): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(114): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(115): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(116): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(137): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(138): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(139): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(140): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(141): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(142): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(143): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(158): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(159): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(160): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(161): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(162): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(179): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(180): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(181): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(182): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(183): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(184): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). D:\Github Repo Connected\neural_renderer\neural_renderer\cuda\rasterize_cuda.cpp(185): warning C4996: 'at::Tensor::type': Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). ninja: build stopped: subcommand failed. Traceback (most recent call last): File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\utils\cpp_extension.py", line 1900, in _run_ninja_build subprocess.run( File "C:\ProgramData\Anaconda3\envs\thesis\lib\subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "setup.py", line 29, in setup( File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools__init__.py", line 87, in setup return distutils.core.setup(**attrs) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\core.py", line 185, in setup return run_commands(dist) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands dist.run_commands() File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands self.run_command(cmd) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\dist.py", line 1208, in run_command super().run_command(command) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\command\install.py", line 74, in run self.do_egg_install() File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\command\install.py", line 123, in do_egg_install self.run_command('bdist_egg') File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\dist.py", line 1208, in run_command super().run_command(command) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\command\bdist_egg.py", line 165, in run cmd = self.call_command('install_lib', warn_dir=0) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\command\bdist_egg.py", line 151, in call_command self.run_command(cmdname) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\dist.py", line 1208, in run_command super().run_command(command) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\command\install_lib.py", line 11, in run self.build() File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\command\install_lib.py", line 112, in build self.run_command('build_ext') File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\dist.py", line 1208, in run_command super().run_command(command) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\command\build_ext.py", line 84, in run _build_ext.run(self) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\command\build_ext.py", line 346, in run self.build_extensions() File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\utils\cpp_extension.py", line 843, in build_extensions build_ext.build_extensions(self) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\command\build_ext.py", line 468, in build_extensions self._build_extensions_serial() File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\command\build_ext.py", line 494, in _build_extensions_serial self.build_extension(ext) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension _build_ext.build_extension(self, ext) File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\setuptools_distutils\command\build_ext.py", line 549, in build_extension objects = self.compiler.compile( File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\utils\cpp_extension.py", line 815, in win_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\utils\cpp_extension.py", line 1573, in _write_ninja_file_and_compile_objects _run_ninja_build( File "C:\ProgramData\Anaconda3\envs\thesis\lib\site-packages\torch\utils\cpp_extension.py", line 1916, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension

rohit7044 commented 1 year ago

The problem was due to RTX graphics card This solution solved the problem

MilesTheProwler commented 10 months ago

I still cannot solve it even I edit that part. Could you please help me ?

running install
running bdist_egg
running egg_info
writing neural_renderer_pytorch.egg-info/PKG-INFO
writing dependency_links to neural_renderer_pytorch.egg-info/dependency_links.txt
writing top-level names to neural_renderer_pytorch.egg-info/top_level.txt
reading manifest file 'neural_renderer_pytorch.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'neural_renderer_pytorch.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'neural_renderer.cuda.load_textures' extension
Emitting ninja build file /home/ninja/HF-Avatar/thirdparty/neural_renderer_pytorch/build/temp.linux-x86_64-3.6/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/1] /usr/bin/nvcc -I/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/include -I/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/include/TH -I/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/include/THC -I/home/ninja/miniconda3/envs/Avatar/include/python3.6m -c -c /home/ninja/HF-Avatar/thirdparty/neural_renderer_pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu -o /home/ninja/HF-Avatar/thirdparty/neural_renderer_pytorch/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/ninja/HF-Avatar/thirdparty/neural_renderer_pytorch/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda_kernel.o
/usr/bin/nvcc -I/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/include -I/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/include/TH -I/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/include/THC -I/home/ninja/miniconda3/envs/Avatar/include/python3.6m -c -c /home/ninja/HF-Avatar/thirdparty/neural_renderer_pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu -o /home/ninja/HF-Avatar/thirdparty/neural_renderer_pytorch/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                                                                                                                                 ^
/usr/include/c++/11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |         operator=(_Functor&& __f)
      |                                                                                                                                                  ^
/usr/include/c++/11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1522, in _run_ninja_build
    env=env)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "setup.py", line 40, in <module>
    cmdclass = {'build_ext': BuildExtension}
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/setuptools/command/install.py", line 67, in run
    self.do_egg_install()
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/setuptools/command/install.py", line 109, in do_egg_install
    self.run_command('bdist_egg')
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 164, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 150, in call_command
    self.run_command(cmdname)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/command/install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 79, in run    _build_ext.run(self)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 653, in build_extensions
    build_ext.build_extensions(self)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 482, in unix_wrap_ninja_compile
    with_cuda=with_cuda)
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1238, in _write_ninja_file_and_compile_objects
    error_prefix='Error compiling objects for extension')
  File "/home/ninja/miniconda3/envs/Avatar/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1538, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension