NVlabs / nvdiffmodeling

Differentiable rasterization applied to 3D model simplification tasks
Other
455 stars 30 forks source link

ImportError: DLL load failed while importing renderutils_plugin #32

Closed zouxiaohang closed 1 year ago

zouxiaohang commented 1 year ago

image here is the folder of renderutils_plugin image

zouxiaohang commented 1 year ago

It seems that the dll file is missing. This dll file should be compiled and generated, but I did not find this dll after following the tutorial.

JHnvidia commented 1 year ago

Hi,

This is probably some versioning issue between Visual Studio, CUDA SDK & Pytorch. There's not supposed to be a dll file in the ninja cache directory. AFAIK the DLL file is created somehow by pytorch. Below is a screenshot of my cache folder (note, I'm running pytorch 2 with cuda 11.7, and python 3.9). Since your pytorch container seems to be running cuda 11.8 make sure you have the same version of the SDK installed (and set as CUDA_PATH).

bild

There's a thread in the stylegan repo with a similar issue, which may give some additional information: https://github.com/NVlabs/stylegan3/issues/88

zouxiaohang commented 1 year ago

@JHnvidia I changed the cuda version to 11.8 and it was solved, thank you