Skip to content

Recommend replacing RasterizeGLContext withRasterizeCudaContext #3

Open
@Assassin-plus

Description

@Assassin-plus

Since the nvdiffast developr mentioned in sicxu/Deep3DFaceRecon_pytorch#108

Also, the current version of nvdiffrast includes a Cuda-based rasterizer that doesn't require OpenGL. You may want to consider switching to that by default, as setting up OpenGL can be tricky on some platforms.

I recommend to replace the RasterizeGLContext() function in core/NvDiffRastRenderer.py line 25 to RasterizeCudaContext().

It should be fine since I can run the code after the replacement, and if I don't replace it, I came up with the same problem in sicxu/Deep3DFaceRecon_pytorch#2

$ python experiments/smpl/optim.py
Setting up [LPIPS] perceptual loss: trunk [alex], v[0.1], spatial [off]
Loading model from: /usr/local/miniconda3/envs/DROT/lib/python3.8/site-packages/lpips/weights/v0.1/alex.pth
[F glutil.cpp:332] eglGetDisplay() failed
Aborted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions