Spaces:
Running
on
Zero
Running
on
Zero
bluestyle97
commited on
Update freesplatter/utils/mesh_renderer.py
Browse files
freesplatter/utils/mesh_renderer.py
CHANGED
@@ -297,7 +297,7 @@ class MeshRenderer(nn.Module):
|
|
297 |
assert isinstance(ssaa, int) and ssaa >= 1
|
298 |
self.ssaa = ssaa
|
299 |
self.texture_filter = texture_filter
|
300 |
-
self.glctx = dr.
|
301 |
|
302 |
def forward(self, meshes, poses, intrinsics, h, w, shading_fun=None,
|
303 |
dilate_edges=0, normal_bg=[0.5, 0.5, 1.0], aa=True, render_vc=False):
|
|
|
297 |
assert isinstance(ssaa, int) and ssaa >= 1
|
298 |
self.ssaa = ssaa
|
299 |
self.texture_filter = texture_filter
|
300 |
+
self.glctx = dr.RasterizeGLContext(output_db=False)
|
301 |
|
302 |
def forward(self, meshes, poses, intrinsics, h, w, shading_fun=None,
|
303 |
dilate_edges=0, normal_bg=[0.5, 0.5, 1.0], aa=True, render_vc=False):
|