abreza commited on
Commit
427f665
β€’
1 Parent(s): 239e576

reconfigure files

Browse files
Files changed (46) hide show
  1. {src β†’ instantMesh}/__init__.py +0 -0
  2. {configs β†’ instantMesh/configs}/instant-mesh-base.yaml +0 -0
  3. {configs β†’ instantMesh/configs}/instant-mesh-large.yaml +0 -0
  4. {configs β†’ instantMesh/configs}/instant-nerf-base.yaml +0 -0
  5. {configs β†’ instantMesh/configs}/instant-nerf-large.yaml +0 -0
  6. {src/data β†’ instantMesh/src}/__init__.py +0 -0
  7. {src/models β†’ instantMesh/src/data}/__init__.py +0 -0
  8. {src β†’ instantMesh/src}/data/objaverse.py +0 -0
  9. {src β†’ instantMesh/src}/model.py +0 -0
  10. {src β†’ instantMesh/src}/model_mesh.py +0 -0
  11. {src/models/decoder β†’ instantMesh/src/models}/__init__.py +0 -0
  12. {src/models/encoder β†’ instantMesh/src/models/decoder}/__init__.py +0 -0
  13. {src β†’ instantMesh/src}/models/decoder/transformer.py +0 -0
  14. {src/utils β†’ instantMesh/src/models/encoder}/__init__.py +0 -0
  15. {src β†’ instantMesh/src}/models/encoder/dino.py +0 -0
  16. {src β†’ instantMesh/src}/models/encoder/dino_wrapper.py +0 -0
  17. {src β†’ instantMesh/src}/models/geometry/__init__.py +0 -0
  18. {src β†’ instantMesh/src}/models/geometry/camera/__init__.py +0 -0
  19. {src β†’ instantMesh/src}/models/geometry/camera/perspective_camera.py +0 -0
  20. {src β†’ instantMesh/src}/models/geometry/render/__init__.py +0 -0
  21. {src β†’ instantMesh/src}/models/geometry/render/neural_render.py +0 -0
  22. {src β†’ instantMesh/src}/models/geometry/rep_3d/__init__.py +0 -0
  23. {src β†’ instantMesh/src}/models/geometry/rep_3d/dmtet.py +0 -0
  24. {src β†’ instantMesh/src}/models/geometry/rep_3d/dmtet_utils.py +0 -0
  25. {src β†’ instantMesh/src}/models/geometry/rep_3d/extract_texture_map.py +0 -0
  26. {src β†’ instantMesh/src}/models/geometry/rep_3d/flexicubes.py +0 -0
  27. {src β†’ instantMesh/src}/models/geometry/rep_3d/flexicubes_geometry.py +0 -0
  28. {src β†’ instantMesh/src}/models/geometry/rep_3d/tables.py +0 -0
  29. {src β†’ instantMesh/src}/models/lrm.py +0 -0
  30. {src β†’ instantMesh/src}/models/lrm_mesh.py +0 -0
  31. {src β†’ instantMesh/src}/models/renderer/__init__.py +0 -0
  32. {src β†’ instantMesh/src}/models/renderer/synthesizer.py +0 -0
  33. {src β†’ instantMesh/src}/models/renderer/synthesizer_mesh.py +0 -0
  34. {src β†’ instantMesh/src}/models/renderer/utils/__init__.py +0 -0
  35. {src β†’ instantMesh/src}/models/renderer/utils/math_utils.py +0 -0
  36. {src β†’ instantMesh/src}/models/renderer/utils/ray_marcher.py +0 -0
  37. {src β†’ instantMesh/src}/models/renderer/utils/ray_sampler.py +0 -0
  38. {src β†’ instantMesh/src}/models/renderer/utils/renderer.py +0 -0
  39. instantMesh/src/utils/__init__.py +0 -0
  40. {src β†’ instantMesh/src}/utils/camera_util.py +0 -0
  41. {src β†’ instantMesh/src}/utils/infer_util.py +0 -0
  42. {src β†’ instantMesh/src}/utils/mesh_util.py +0 -0
  43. {src β†’ instantMesh/src}/utils/train_util.py +0 -0
  44. {zero123plus β†’ instantMesh/zero123plus}/pipeline.py +0 -0
  45. launch/image_generation.py +1 -1
  46. launch/model_generation.py +5 -5
{src β†’ instantMesh}/__init__.py RENAMED
File without changes
{configs β†’ instantMesh/configs}/instant-mesh-base.yaml RENAMED
File without changes
{configs β†’ instantMesh/configs}/instant-mesh-large.yaml RENAMED
File without changes
{configs β†’ instantMesh/configs}/instant-nerf-base.yaml RENAMED
File without changes
{configs β†’ instantMesh/configs}/instant-nerf-large.yaml RENAMED
File without changes
{src/data β†’ instantMesh/src}/__init__.py RENAMED
File without changes
{src/models β†’ instantMesh/src/data}/__init__.py RENAMED
File without changes
{src β†’ instantMesh/src}/data/objaverse.py RENAMED
File without changes
{src β†’ instantMesh/src}/model.py RENAMED
File without changes
{src β†’ instantMesh/src}/model_mesh.py RENAMED
File without changes
{src/models/decoder β†’ instantMesh/src/models}/__init__.py RENAMED
File without changes
{src/models/encoder β†’ instantMesh/src/models/decoder}/__init__.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/decoder/transformer.py RENAMED
File without changes
{src/utils β†’ instantMesh/src/models/encoder}/__init__.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/encoder/dino.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/encoder/dino_wrapper.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/geometry/__init__.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/geometry/camera/__init__.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/geometry/camera/perspective_camera.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/geometry/render/__init__.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/geometry/render/neural_render.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/geometry/rep_3d/__init__.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/geometry/rep_3d/dmtet.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/geometry/rep_3d/dmtet_utils.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/geometry/rep_3d/extract_texture_map.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/geometry/rep_3d/flexicubes.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/geometry/rep_3d/flexicubes_geometry.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/geometry/rep_3d/tables.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/lrm.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/lrm_mesh.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/renderer/__init__.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/renderer/synthesizer.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/renderer/synthesizer_mesh.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/renderer/utils/__init__.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/renderer/utils/math_utils.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/renderer/utils/ray_marcher.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/renderer/utils/ray_sampler.py RENAMED
File without changes
{src β†’ instantMesh/src}/models/renderer/utils/renderer.py RENAMED
File without changes
instantMesh/src/utils/__init__.py ADDED
File without changes
{src β†’ instantMesh/src}/utils/camera_util.py RENAMED
File without changes
{src β†’ instantMesh/src}/utils/infer_util.py RENAMED
File without changes
{src β†’ instantMesh/src}/utils/mesh_util.py RENAMED
File without changes
{src β†’ instantMesh/src}/utils/train_util.py RENAMED
File without changes
{zero123plus β†’ instantMesh/zero123plus}/pipeline.py RENAMED
File without changes
launch/image_generation.py CHANGED
@@ -6,7 +6,7 @@ import spaces
6
  import torch
7
  from diffusers import DiffusionPipeline
8
 
9
- from src.utils.infer_util import (remove_background, resize_foreground)
10
 
11
 
12
  pipe = DiffusionPipeline.from_pretrained(
 
6
  import torch
7
  from diffusers import DiffusionPipeline
8
 
9
+ from instantMesh.src.utils.infer_util import (remove_background, resize_foreground)
10
 
11
 
12
  pipe = DiffusionPipeline.from_pretrained(
launch/model_generation.py CHANGED
@@ -14,14 +14,14 @@ from PIL import Image
14
  from pytorch_lightning import seed_everything
15
  from torchvision.transforms import v2
16
 
17
- from src.utils.camera_util import (FOV_to_intrinsics, get_circular_camera_poses,
18
- get_zero123plus_input_cameras)
19
- from src.utils.mesh_util import save_glb, save_obj
20
- from src.utils.train_util import instantiate_from_config
21
 
22
  # Configuration
23
  cuda_path = find_cuda()
24
- config_path = 'configs/instant-mesh-large.yaml'
25
  config = OmegaConf.load(config_path)
26
  config_name = os.path.basename(config_path).replace('.yaml', '')
27
  model_config = config.model_config
 
14
  from pytorch_lightning import seed_everything
15
  from torchvision.transforms import v2
16
 
17
+ from instantMesh.src.utils.camera_util import (FOV_to_intrinsics, get_circular_camera_poses,
18
+ get_zero123plus_input_cameras)
19
+ from instantMesh.src.utils.mesh_util import save_glb, save_obj
20
+ from instantMesh.src.utils.train_util import instantiate_from_config
21
 
22
  # Configuration
23
  cuda_path = find_cuda()
24
+ config_path = 'instantMesh/configs/instant-mesh-large.yaml'
25
  config = OmegaConf.load(config_path)
26
  config_name = os.path.basename(config_path).replace('.yaml', '')
27
  model_config = config.model_config