NVlabs / nvdiffrast

Nvdiffrast - Modular Primitives for High-Performance Differentiable Rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot use with pyrender

agnJason opened this issue · comments

import pyrender
import nvdiffrast.torch as dr
glctx = dr.RasterizeGLContext()

raise segmentation fault

Creating the OpenGL rasterizer context before importing pyrender may help.

Alternatively, consider using RasterizeCudaContext instead of RasterizeGLContext. The Cuda rasterizer does not use OpenGL at all, so there won't be a conflict with pyrender.

Thanks. I got it!