Kyle-Liz commited on
Commit
0352152
1 Parent(s): bd52c97

Update video3d/model_ddp.py

Browse files
Files changed (1) hide show
  1. video3d/model_ddp.py +2 -1
video3d/model_ddp.py CHANGED
@@ -1154,7 +1154,8 @@ class Unsup3DDDP:
1154
  self.perceptual_loss_use_lin = cfgs.get('perceptual_loss_use_lin', True)
1155
  self.perceptual_loss = lpips.LPIPS(net='vgg', lpips=self.perceptual_loss_use_lin)
1156
 
1157
- self.glctx = dr.RasterizeGLContext()
 
1158
  self.render_flow = self.cfgs.get('flow_loss_weight', 0.) > 0.
1159
  self.extra_renders = cfgs.get('extra_renders', [])
1160
  self.renderer_spp = cfgs.get('renderer_spp', 1)
 
1154
  self.perceptual_loss_use_lin = cfgs.get('perceptual_loss_use_lin', True)
1155
  self.perceptual_loss = lpips.LPIPS(net='vgg', lpips=self.perceptual_loss_use_lin)
1156
 
1157
+ # self.glctx = dr.RasterizeGLContext()
1158
+ self.glctx = dr.RasterizeCudaContext()
1159
  self.render_flow = self.cfgs.get('flow_loss_weight', 0.) > 0.
1160
  self.extra_renders = cfgs.get('extra_renders', [])
1161
  self.renderer_spp = cfgs.get('renderer_spp', 1)