Deep3DFaceRecon_pytorch
Deep3DFaceRecon_pytorch copied to clipboard
RuntimeError: glLinkProgram() failed:
self.cpp_wrapper = _get_plugin().RasterizeGLStateWrapper(output_db, mode == 'automatic', cuda_device_idx)
RuntimeError: glLinkProgram() failed:
Fragment info
0(2) : error C7528: OpenGL reserves names starting with 'gl_': gl_PrimitiveID
(0) : error C2003: incompatible options for link
You may try to edit this file "nvdiffrast/common/rasterize.cpp" with remove all "in int gl_PrimitiveID" , and it will work.....
Also, if you come from https://github.com/NVlabs/eg3d make sure that you clone the current version of nvdiffrast to the repository.
The EG3D repo currently links to an old branch of Deep3DFaceRecon, which recommends using git clone --recursive
. This, however, clones an old version of nvdiffrast to Deep3DFaceRecon/nvdiffrast, which produces the same error you mentioned.
To fix this I uninstalled nvdiffrast, removed the folder and cloned the current version via git clone https://github.com/NVlabs/nvdiffrast
.
See here for more info.