bhuvanmdev commited on
Commit
b4a8e10
1 Parent(s): f3a960f

Update lgm/lgm.py

Browse files
Files changed (1) hide show
  1. lgm/lgm.py +2 -2
lgm/lgm.py CHANGED
@@ -237,7 +237,7 @@ class LGM(ModelMixin, ConfigMixin):
237
  self.rot_act = F.normalize
238
  self.rgb_act = lambda x: 0.5 * torch.tanh(x) + 0.5
239
 
240
- def prepare_default_rays(self, device, elevation=0):
241
  # cam_poses = np.stack(
242
  # [
243
  # orbit_camera(elevation, 0, radius=self.radius),
@@ -247,7 +247,7 @@ class LGM(ModelMixin, ConfigMixin):
247
  # ],
248
  # axis=0,
249
  # )
250
- angles = np.linspace(0, 360, self.views, endpoint=False)
251
  cam_poses = np.stack(
252
  [
253
  orbit_camera(elevation, angle, radius=self.radius) for angle in angles
 
237
  self.rot_act = F.normalize
238
  self.rgb_act = lambda x: 0.5 * torch.tanh(x) + 0.5
239
 
240
+ def prepare_default_rays(self, device, elevation=0,views = 5):
241
  # cam_poses = np.stack(
242
  # [
243
  # orbit_camera(elevation, 0, radius=self.radius),
 
247
  # ],
248
  # axis=0,
249
  # )
250
+ angles = np.linspace(0, 360, views, endpoint=False)
251
  cam_poses = np.stack(
252
  [
253
  orbit_camera(elevation, angle, radius=self.radius) for angle in angles