Possible bug in render_mesh.py
Twizwei opened this issue · 2 comments
Twizwei commented
Hi there, thanks for providing the code! I found some possible bugs when I used render_mesh.py
.
- Lack of openGL environment. To solve this, I added
os.environ['PYOPENGL_PLATFORM'] = 'egl'
to the top of the code. - Delete the render. I met this error because the render is not deleted at each iteration. To solve this, I added
r.delete()
to the end of each iteration in the for loop. - Unsorted image list for video generation. In Line 70, the input image list is not sorted. To fix it, change Line 70 to
img2video(sorted(glob.glob(f"tmp/{id}/*.png")), f"{outdir}/render.mp4")
.
MrTornado24 commented
Hi, thanks for the correction :)
FeiiYin commented
Another note. In my environment, have to set the environment PYOPENGL_PLATFORM=osmesa
. :-(