diff --git a/hamer/utils/mesh_renderer.py b/hamer/utils/mesh_renderer.py
index a590af04622d732e69b7ab9a9d7d623be71431e9..0e724c55f099c105309664c0d51f0863ab2e8144 100644
--- a/hamer/utils/mesh_renderer.py
+++ b/hamer/utils/mesh_renderer.py
@@ -1,7 +1,7 @@
 import os
 # if 'PYOPENGL_PLATFORM' not in os.environ:
 #     os.environ['PYOPENGL_PLATFORM'] = 'egl'
-
+os.environ['PYOPENGL_PLATFORM'] = 'osmesa'
 import torch
 from torchvision.utils import make_grid
 import numpy as np