pookiefoof commited on
Commit
c0e5fa8
1 Parent(s): 487fffe

Update Upload version

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. 2D_Stage/tuneavideo/__pycache__/util.cpython-310.pyc +0 -0
  2. 2D_Stage/tuneavideo/models/__pycache__/PoseGuider.cpython-310.pyc +0 -0
  3. 2D_Stage/tuneavideo/models/__pycache__/refunet.cpython-310.pyc +0 -0
  4. 2D_Stage/tuneavideo/models/__pycache__/resnet.cpython-310.pyc +0 -0
  5. 2D_Stage/tuneavideo/models/__pycache__/transformer_mv2d.cpython-310.pyc +0 -0
  6. 2D_Stage/tuneavideo/models/__pycache__/unet.cpython-310.pyc +0 -0
  7. 2D_Stage/tuneavideo/models/__pycache__/unet_blocks.cpython-310.pyc +0 -0
  8. 2D_Stage/tuneavideo/models/__pycache__/unet_mv2d_blocks.cpython-310.pyc +0 -0
  9. 2D_Stage/tuneavideo/models/__pycache__/unet_mv2d_condition.cpython-310.pyc +0 -0
  10. 2D_Stage/tuneavideo/models/__pycache__/unet_mv2d_ref.cpython-310.pyc +0 -0
  11. 2D_Stage/tuneavideo/pipelines/__pycache__/pipeline_tuneavideo.cpython-310.pyc +0 -0
  12. 2D_Stage/tuneavideo/pipelines/pipeline_tuneavideo.py +2 -2
  13. 3D_Stage/__pycache__/refine.cpython-310.pyc +0 -0
  14. 3D_Stage/lrm/__pycache__/__init__.cpython-310.pyc +0 -0
  15. 3D_Stage/lrm/models/__pycache__/__init__.cpython-310.pyc +0 -0
  16. 3D_Stage/lrm/models/__pycache__/camera.cpython-310.pyc +0 -0
  17. 3D_Stage/lrm/models/__pycache__/isosurface.cpython-310.pyc +0 -0
  18. 3D_Stage/lrm/models/__pycache__/lpips.cpython-310.pyc +0 -0
  19. 3D_Stage/lrm/models/__pycache__/mesh.cpython-310.pyc +0 -0
  20. 3D_Stage/lrm/models/__pycache__/networks.cpython-310.pyc +0 -0
  21. 3D_Stage/lrm/models/background/__pycache__/__init__.cpython-310.pyc +0 -0
  22. 3D_Stage/lrm/models/background/__pycache__/base.cpython-310.pyc +0 -0
  23. 3D_Stage/lrm/models/background/__pycache__/solid_color_background.cpython-310.pyc +0 -0
  24. 3D_Stage/lrm/models/camera.py +0 -2
  25. 3D_Stage/lrm/models/exporters/__pycache__/__init__.cpython-310.pyc +0 -0
  26. 3D_Stage/lrm/models/exporters/__pycache__/base.cpython-310.pyc +0 -0
  27. 3D_Stage/lrm/models/exporters/__pycache__/mesh_exporter.cpython-310.pyc +0 -0
  28. 3D_Stage/lrm/models/exporters/mesh_exporter.py +1 -3
  29. 3D_Stage/lrm/models/materials/__pycache__/__init__.cpython-310.pyc +0 -0
  30. 3D_Stage/lrm/models/materials/__pycache__/base.cpython-310.pyc +0 -0
  31. 3D_Stage/lrm/models/materials/__pycache__/no_material.cpython-310.pyc +0 -0
  32. 3D_Stage/lrm/models/renderers/__pycache__/__init__.cpython-310.pyc +0 -0
  33. 3D_Stage/lrm/models/renderers/__pycache__/base.cpython-310.pyc +0 -0
  34. 3D_Stage/lrm/models/renderers/__pycache__/triplane_dmtet.cpython-310.pyc +0 -0
  35. 3D_Stage/lrm/models/renderers/triplane_dmtet.py +1 -3
  36. 3D_Stage/lrm/models/tokenizers/__pycache__/__init__.cpython-310.pyc +0 -0
  37. 3D_Stage/lrm/models/tokenizers/__pycache__/dinov2.cpython-310.pyc +0 -0
  38. 3D_Stage/lrm/models/tokenizers/__pycache__/image.cpython-310.pyc +0 -0
  39. 3D_Stage/lrm/models/tokenizers/__pycache__/triplane.cpython-310.pyc +0 -0
  40. 3D_Stage/lrm/models/transformers/__pycache__/__init__.cpython-310.pyc +0 -0
  41. 3D_Stage/lrm/models/transformers/__pycache__/attention.cpython-310.pyc +0 -0
  42. 3D_Stage/lrm/models/transformers/__pycache__/transformer_1d.cpython-310.pyc +0 -0
  43. 3D_Stage/lrm/models/transformers/attention.py +2 -2
  44. 3D_Stage/lrm/systems/__pycache__/__init__.cpython-310.pyc +0 -0
  45. 3D_Stage/lrm/systems/__pycache__/base.cpython-310.pyc +0 -0
  46. 3D_Stage/lrm/systems/__pycache__/multiview_lrm.cpython-310.pyc +0 -0
  47. 3D_Stage/lrm/systems/__pycache__/utils.cpython-310.pyc +0 -0
  48. 3D_Stage/lrm/systems/multiview_lrm.py +4 -6
  49. 3D_Stage/lrm/utils/__pycache__/__init__.cpython-310.pyc +0 -0
  50. 3D_Stage/lrm/utils/__pycache__/base.cpython-310.pyc +0 -0
2D_Stage/tuneavideo/__pycache__/util.cpython-310.pyc CHANGED
Binary files a/2D_Stage/tuneavideo/__pycache__/util.cpython-310.pyc and b/2D_Stage/tuneavideo/__pycache__/util.cpython-310.pyc differ
 
2D_Stage/tuneavideo/models/__pycache__/PoseGuider.cpython-310.pyc CHANGED
Binary files a/2D_Stage/tuneavideo/models/__pycache__/PoseGuider.cpython-310.pyc and b/2D_Stage/tuneavideo/models/__pycache__/PoseGuider.cpython-310.pyc differ
 
2D_Stage/tuneavideo/models/__pycache__/refunet.cpython-310.pyc CHANGED
Binary files a/2D_Stage/tuneavideo/models/__pycache__/refunet.cpython-310.pyc and b/2D_Stage/tuneavideo/models/__pycache__/refunet.cpython-310.pyc differ
 
2D_Stage/tuneavideo/models/__pycache__/resnet.cpython-310.pyc CHANGED
Binary files a/2D_Stage/tuneavideo/models/__pycache__/resnet.cpython-310.pyc and b/2D_Stage/tuneavideo/models/__pycache__/resnet.cpython-310.pyc differ
 
2D_Stage/tuneavideo/models/__pycache__/transformer_mv2d.cpython-310.pyc CHANGED
Binary files a/2D_Stage/tuneavideo/models/__pycache__/transformer_mv2d.cpython-310.pyc and b/2D_Stage/tuneavideo/models/__pycache__/transformer_mv2d.cpython-310.pyc differ
 
2D_Stage/tuneavideo/models/__pycache__/unet.cpython-310.pyc CHANGED
Binary files a/2D_Stage/tuneavideo/models/__pycache__/unet.cpython-310.pyc and b/2D_Stage/tuneavideo/models/__pycache__/unet.cpython-310.pyc differ
 
2D_Stage/tuneavideo/models/__pycache__/unet_blocks.cpython-310.pyc CHANGED
Binary files a/2D_Stage/tuneavideo/models/__pycache__/unet_blocks.cpython-310.pyc and b/2D_Stage/tuneavideo/models/__pycache__/unet_blocks.cpython-310.pyc differ
 
2D_Stage/tuneavideo/models/__pycache__/unet_mv2d_blocks.cpython-310.pyc CHANGED
Binary files a/2D_Stage/tuneavideo/models/__pycache__/unet_mv2d_blocks.cpython-310.pyc and b/2D_Stage/tuneavideo/models/__pycache__/unet_mv2d_blocks.cpython-310.pyc differ
 
2D_Stage/tuneavideo/models/__pycache__/unet_mv2d_condition.cpython-310.pyc CHANGED
Binary files a/2D_Stage/tuneavideo/models/__pycache__/unet_mv2d_condition.cpython-310.pyc and b/2D_Stage/tuneavideo/models/__pycache__/unet_mv2d_condition.cpython-310.pyc differ
 
2D_Stage/tuneavideo/models/__pycache__/unet_mv2d_ref.cpython-310.pyc CHANGED
Binary files a/2D_Stage/tuneavideo/models/__pycache__/unet_mv2d_ref.cpython-310.pyc and b/2D_Stage/tuneavideo/models/__pycache__/unet_mv2d_ref.cpython-310.pyc differ
 
2D_Stage/tuneavideo/pipelines/__pycache__/pipeline_tuneavideo.cpython-310.pyc CHANGED
Binary files a/2D_Stage/tuneavideo/pipelines/__pycache__/pipeline_tuneavideo.cpython-310.pyc and b/2D_Stage/tuneavideo/pipelines/__pycache__/pipeline_tuneavideo.cpython-310.pyc differ
 
2D_Stage/tuneavideo/pipelines/pipeline_tuneavideo.py CHANGED
@@ -360,12 +360,12 @@ class TuneAVideoPipeline(DiffusionPipeline):
360
  if isinstance(generator, list):
361
  shape = (1,) + shape[1:]
362
  latents = [
363
- torch.randn(shape, device=rand_device, dtype=dtype)
364
  for i in range(batch_size)
365
  ]
366
  latents = torch.cat(latents, dim=0).to(device)
367
  else:
368
- latents = torch.randn(shape, device=rand_device, dtype=dtype).to(device)
369
  else:
370
  if latents.shape != shape:
371
  raise ValueError(f"Unexpected latents shape, got {latents.shape}, expected {shape}")
 
360
  if isinstance(generator, list):
361
  shape = (1,) + shape[1:]
362
  latents = [
363
+ torch.randn(shape, generator=generator[i], device=rand_device, dtype=dtype)
364
  for i in range(batch_size)
365
  ]
366
  latents = torch.cat(latents, dim=0).to(device)
367
  else:
368
+ latents = torch.randn(shape, dtype=dtype).to(device)
369
  else:
370
  if latents.shape != shape:
371
  raise ValueError(f"Unexpected latents shape, got {latents.shape}, expected {shape}")
3D_Stage/__pycache__/refine.cpython-310.pyc CHANGED
Binary files a/3D_Stage/__pycache__/refine.cpython-310.pyc and b/3D_Stage/__pycache__/refine.cpython-310.pyc differ
 
3D_Stage/lrm/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/__pycache__/__init__.cpython-310.pyc and b/3D_Stage/lrm/__pycache__/__init__.cpython-310.pyc differ
 
3D_Stage/lrm/models/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/__pycache__/__init__.cpython-310.pyc and b/3D_Stage/lrm/models/__pycache__/__init__.cpython-310.pyc differ
 
3D_Stage/lrm/models/__pycache__/camera.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/__pycache__/camera.cpython-310.pyc and b/3D_Stage/lrm/models/__pycache__/camera.cpython-310.pyc differ
 
3D_Stage/lrm/models/__pycache__/isosurface.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/__pycache__/isosurface.cpython-310.pyc and b/3D_Stage/lrm/models/__pycache__/isosurface.cpython-310.pyc differ
 
3D_Stage/lrm/models/__pycache__/lpips.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/__pycache__/lpips.cpython-310.pyc and b/3D_Stage/lrm/models/__pycache__/lpips.cpython-310.pyc differ
 
3D_Stage/lrm/models/__pycache__/mesh.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/__pycache__/mesh.cpython-310.pyc and b/3D_Stage/lrm/models/__pycache__/mesh.cpython-310.pyc differ
 
3D_Stage/lrm/models/__pycache__/networks.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/__pycache__/networks.cpython-310.pyc and b/3D_Stage/lrm/models/__pycache__/networks.cpython-310.pyc differ
 
3D_Stage/lrm/models/background/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/background/__pycache__/__init__.cpython-310.pyc and b/3D_Stage/lrm/models/background/__pycache__/__init__.cpython-310.pyc differ
 
3D_Stage/lrm/models/background/__pycache__/base.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/background/__pycache__/base.cpython-310.pyc and b/3D_Stage/lrm/models/background/__pycache__/base.cpython-310.pyc differ
 
3D_Stage/lrm/models/background/__pycache__/solid_color_background.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/background/__pycache__/solid_color_background.cpython-310.pyc and b/3D_Stage/lrm/models/background/__pycache__/solid_color_background.cpython-310.pyc differ
 
3D_Stage/lrm/models/camera.py CHANGED
@@ -29,7 +29,5 @@ class LinearCameraEmbedder(BaseModule):
29
  cond_tensors.append(cond.view(*cond.shape[:2], -1))
30
  cond_tensor = torch.cat(cond_tensors, dim=-1)
31
  assert cond_tensor.shape[-1] == self.cfg.in_channels
32
- #self.linear = self.linear.to("cuda")
33
- #print(self.linear.weight.device, cond_tensor.device)
34
  embedding = self.linear(cond_tensor)
35
  return embedding
 
29
  cond_tensors.append(cond.view(*cond.shape[:2], -1))
30
  cond_tensor = torch.cat(cond_tensors, dim=-1)
31
  assert cond_tensor.shape[-1] == self.cfg.in_channels
 
 
32
  embedding = self.linear(cond_tensor)
33
  return embedding
3D_Stage/lrm/models/exporters/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/exporters/__pycache__/__init__.cpython-310.pyc and b/3D_Stage/lrm/models/exporters/__pycache__/__init__.cpython-310.pyc differ
 
3D_Stage/lrm/models/exporters/__pycache__/base.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/exporters/__pycache__/base.cpython-310.pyc and b/3D_Stage/lrm/models/exporters/__pycache__/base.cpython-310.pyc differ
 
3D_Stage/lrm/models/exporters/__pycache__/mesh_exporter.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/exporters/__pycache__/mesh_exporter.cpython-310.pyc and b/3D_Stage/lrm/models/exporters/__pycache__/mesh_exporter.cpython-310.pyc differ
 
3D_Stage/lrm/models/exporters/mesh_exporter.py CHANGED
@@ -78,8 +78,7 @@ class MeshExporter(Exporter):
78
 
79
  def configure(self, renderer: BaseRenderer) -> None:
80
  super().configure(renderer)
81
- self.ctx = None
82
- #self.ctx = NVDiffRasterizerContext(self.cfg.context_type, self.device)
83
  if self.cfg.fmt == "obj-mtl":
84
  lrm.warn(
85
  f"fmt=obj-mtl is deprecated, please us fmt=obj and visual=uv instead."
@@ -102,7 +101,6 @@ class MeshExporter(Exporter):
102
  def get_texture_maps(
103
  self, scene_code: torch.Tensor, mesh: Mesh
104
  ) -> Dict[str, torch.Tensor]:
105
- self.ctx = NVDiffRasterizerContext(self.cfg.context_type, self.device)
106
  assert mesh.has_uv
107
  # clip space transform
108
  uv_clip = mesh.v_tex * 2.0 - 1.0
 
78
 
79
  def configure(self, renderer: BaseRenderer) -> None:
80
  super().configure(renderer)
81
+ self.ctx = NVDiffRasterizerContext(self.cfg.context_type, self.device)
 
82
  if self.cfg.fmt == "obj-mtl":
83
  lrm.warn(
84
  f"fmt=obj-mtl is deprecated, please us fmt=obj and visual=uv instead."
 
101
  def get_texture_maps(
102
  self, scene_code: torch.Tensor, mesh: Mesh
103
  ) -> Dict[str, torch.Tensor]:
 
104
  assert mesh.has_uv
105
  # clip space transform
106
  uv_clip = mesh.v_tex * 2.0 - 1.0
3D_Stage/lrm/models/materials/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/materials/__pycache__/__init__.cpython-310.pyc and b/3D_Stage/lrm/models/materials/__pycache__/__init__.cpython-310.pyc differ
 
3D_Stage/lrm/models/materials/__pycache__/base.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/materials/__pycache__/base.cpython-310.pyc and b/3D_Stage/lrm/models/materials/__pycache__/base.cpython-310.pyc differ
 
3D_Stage/lrm/models/materials/__pycache__/no_material.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/materials/__pycache__/no_material.cpython-310.pyc and b/3D_Stage/lrm/models/materials/__pycache__/no_material.cpython-310.pyc differ
 
3D_Stage/lrm/models/renderers/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/renderers/__pycache__/__init__.cpython-310.pyc and b/3D_Stage/lrm/models/renderers/__pycache__/__init__.cpython-310.pyc differ
 
3D_Stage/lrm/models/renderers/__pycache__/base.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/renderers/__pycache__/base.cpython-310.pyc and b/3D_Stage/lrm/models/renderers/__pycache__/base.cpython-310.pyc differ
 
3D_Stage/lrm/models/renderers/__pycache__/triplane_dmtet.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/renderers/__pycache__/triplane_dmtet.cpython-310.pyc and b/3D_Stage/lrm/models/renderers/__pycache__/triplane_dmtet.cpython-310.pyc differ
 
3D_Stage/lrm/models/renderers/triplane_dmtet.py CHANGED
@@ -43,8 +43,7 @@ class TriplaneDMTetRenderer(BaseRenderer):
43
 
44
  assert self.cfg.feature_reduction in ["concat", "mean"]
45
 
46
- self.ctx = None
47
-
48
  self.isosurface_helper = MarchingTetrahedraHelper(
49
  self.cfg.isosurface_resolution,
50
  os.path.join(self.cfg.tet_dir, f"{self.cfg.isosurface_resolution}_tets.npz"),
@@ -131,7 +130,6 @@ class TriplaneDMTetRenderer(BaseRenderer):
131
  background_color: Optional[Float[Tensor, "3"]],
132
  extra_sdf_query: Any = None,
133
  ) -> Dict[str, Tensor]:
134
- self.ctx = NVDiffRasterizerContext(self.cfg.context_type, self.device)
135
  Nv = mvp_mtx.shape[0]
136
 
137
  out = {}
 
43
 
44
  assert self.cfg.feature_reduction in ["concat", "mean"]
45
 
46
+ self.ctx = NVDiffRasterizerContext(self.cfg.context_type, self.device)
 
47
  self.isosurface_helper = MarchingTetrahedraHelper(
48
  self.cfg.isosurface_resolution,
49
  os.path.join(self.cfg.tet_dir, f"{self.cfg.isosurface_resolution}_tets.npz"),
 
130
  background_color: Optional[Float[Tensor, "3"]],
131
  extra_sdf_query: Any = None,
132
  ) -> Dict[str, Tensor]:
 
133
  Nv = mvp_mtx.shape[0]
134
 
135
  out = {}
3D_Stage/lrm/models/tokenizers/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/tokenizers/__pycache__/__init__.cpython-310.pyc and b/3D_Stage/lrm/models/tokenizers/__pycache__/__init__.cpython-310.pyc differ
 
3D_Stage/lrm/models/tokenizers/__pycache__/dinov2.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/tokenizers/__pycache__/dinov2.cpython-310.pyc and b/3D_Stage/lrm/models/tokenizers/__pycache__/dinov2.cpython-310.pyc differ
 
3D_Stage/lrm/models/tokenizers/__pycache__/image.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/tokenizers/__pycache__/image.cpython-310.pyc and b/3D_Stage/lrm/models/tokenizers/__pycache__/image.cpython-310.pyc differ
 
3D_Stage/lrm/models/tokenizers/__pycache__/triplane.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/tokenizers/__pycache__/triplane.cpython-310.pyc and b/3D_Stage/lrm/models/tokenizers/__pycache__/triplane.cpython-310.pyc differ
 
3D_Stage/lrm/models/transformers/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/transformers/__pycache__/__init__.cpython-310.pyc and b/3D_Stage/lrm/models/transformers/__pycache__/__init__.cpython-310.pyc differ
 
3D_Stage/lrm/models/transformers/__pycache__/attention.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/transformers/__pycache__/attention.cpython-310.pyc and b/3D_Stage/lrm/models/transformers/__pycache__/attention.cpython-310.pyc differ
 
3D_Stage/lrm/models/transformers/__pycache__/transformer_1d.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/models/transformers/__pycache__/transformer_1d.cpython-310.pyc and b/3D_Stage/lrm/models/transformers/__pycache__/transformer_1d.cpython-310.pyc differ
 
3D_Stage/lrm/models/transformers/attention.py CHANGED
@@ -75,8 +75,8 @@ class MemoryEfficientAttentionMixin:
75
  # Any children which exposes the set_use_memory_efficient_attention_xformers method
76
  # gets the message
77
  def fn_recursive_set_mem_eff(module: torch.nn.Module):
78
- #if hasattr(module, "set_use_memory_efficient_attention_xformers"):
79
- # module.set_use_memory_efficient_attention_xformers(valid, attention_op)
80
 
81
  for child in module.children():
82
  fn_recursive_set_mem_eff(child)
 
75
  # Any children which exposes the set_use_memory_efficient_attention_xformers method
76
  # gets the message
77
  def fn_recursive_set_mem_eff(module: torch.nn.Module):
78
+ if hasattr(module, "set_use_memory_efficient_attention_xformers"):
79
+ module.set_use_memory_efficient_attention_xformers(valid, attention_op)
80
 
81
  for child in module.children():
82
  fn_recursive_set_mem_eff(child)
3D_Stage/lrm/systems/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/systems/__pycache__/__init__.cpython-310.pyc and b/3D_Stage/lrm/systems/__pycache__/__init__.cpython-310.pyc differ
 
3D_Stage/lrm/systems/__pycache__/base.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/systems/__pycache__/base.cpython-310.pyc and b/3D_Stage/lrm/systems/__pycache__/base.cpython-310.pyc differ
 
3D_Stage/lrm/systems/__pycache__/multiview_lrm.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/systems/__pycache__/multiview_lrm.cpython-310.pyc and b/3D_Stage/lrm/systems/__pycache__/multiview_lrm.cpython-310.pyc differ
 
3D_Stage/lrm/systems/__pycache__/utils.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/systems/__pycache__/utils.cpython-310.pyc and b/3D_Stage/lrm/systems/__pycache__/utils.cpython-310.pyc differ
 
3D_Stage/lrm/systems/multiview_lrm.py CHANGED
@@ -62,21 +62,19 @@ class MultiviewLRM(BaseSystem):
62
 
63
  def configure(self):
64
  super().configure()
65
- device = torch.device("cuda")
66
  self.image_tokenizer = lrm.find(self.cfg.image_tokenizer_cls)(
67
  self.cfg.image_tokenizer
68
- ).to(device)
69
  if self.cfg.image_tokenizer.modulation:
70
  self.camera_embedder = lrm.find(self.cfg.camera_embedder_cls)(
71
  self.cfg.camera_embedder
72
- ).to(device)
73
- #print(device, self.camera_embedder.linear.weight.device)
74
- self.tokenizer = lrm.find(self.cfg.tokenizer_cls)(self.cfg.tokenizer).to(device)
75
  self.backbone = lrm.find(self.cfg.backbone_cls)(self.cfg.backbone)
76
  self.post_processor = lrm.find(self.cfg.post_processor_cls)(
77
  self.cfg.post_processor
78
  )
79
- self.decoder = lrm.find(self.cfg.decoder_cls)(self.cfg.decoder).to(device)
80
  self.material = lrm.find(self.cfg.material_cls)(self.cfg.material)
81
  self.background = lrm.find(self.cfg.background_cls)(self.cfg.background)
82
  self.renderer = lrm.find(self.cfg.renderer_cls)(
 
62
 
63
  def configure(self):
64
  super().configure()
 
65
  self.image_tokenizer = lrm.find(self.cfg.image_tokenizer_cls)(
66
  self.cfg.image_tokenizer
67
+ )
68
  if self.cfg.image_tokenizer.modulation:
69
  self.camera_embedder = lrm.find(self.cfg.camera_embedder_cls)(
70
  self.cfg.camera_embedder
71
+ )
72
+ self.tokenizer = lrm.find(self.cfg.tokenizer_cls)(self.cfg.tokenizer)
 
73
  self.backbone = lrm.find(self.cfg.backbone_cls)(self.cfg.backbone)
74
  self.post_processor = lrm.find(self.cfg.post_processor_cls)(
75
  self.cfg.post_processor
76
  )
77
+ self.decoder = lrm.find(self.cfg.decoder_cls)(self.cfg.decoder)
78
  self.material = lrm.find(self.cfg.material_cls)(self.cfg.material)
79
  self.background = lrm.find(self.cfg.background_cls)(self.cfg.background)
80
  self.renderer = lrm.find(self.cfg.renderer_cls)(
3D_Stage/lrm/utils/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/utils/__pycache__/__init__.cpython-310.pyc and b/3D_Stage/lrm/utils/__pycache__/__init__.cpython-310.pyc differ
 
3D_Stage/lrm/utils/__pycache__/base.cpython-310.pyc CHANGED
Binary files a/3D_Stage/lrm/utils/__pycache__/base.cpython-310.pyc and b/3D_Stage/lrm/utils/__pycache__/base.cpython-310.pyc differ