Spaces:
Runtime error
Runtime error
reconfigure files
Browse files- {src β instantMesh}/__init__.py +0 -0
- {configs β instantMesh/configs}/instant-mesh-base.yaml +0 -0
- {configs β instantMesh/configs}/instant-mesh-large.yaml +0 -0
- {configs β instantMesh/configs}/instant-nerf-base.yaml +0 -0
- {configs β instantMesh/configs}/instant-nerf-large.yaml +0 -0
- {src/data β instantMesh/src}/__init__.py +0 -0
- {src/models β instantMesh/src/data}/__init__.py +0 -0
- {src β instantMesh/src}/data/objaverse.py +0 -0
- {src β instantMesh/src}/model.py +0 -0
- {src β instantMesh/src}/model_mesh.py +0 -0
- {src/models/decoder β instantMesh/src/models}/__init__.py +0 -0
- {src/models/encoder β instantMesh/src/models/decoder}/__init__.py +0 -0
- {src β instantMesh/src}/models/decoder/transformer.py +0 -0
- {src/utils β instantMesh/src/models/encoder}/__init__.py +0 -0
- {src β instantMesh/src}/models/encoder/dino.py +0 -0
- {src β instantMesh/src}/models/encoder/dino_wrapper.py +0 -0
- {src β instantMesh/src}/models/geometry/__init__.py +0 -0
- {src β instantMesh/src}/models/geometry/camera/__init__.py +0 -0
- {src β instantMesh/src}/models/geometry/camera/perspective_camera.py +0 -0
- {src β instantMesh/src}/models/geometry/render/__init__.py +0 -0
- {src β instantMesh/src}/models/geometry/render/neural_render.py +0 -0
- {src β instantMesh/src}/models/geometry/rep_3d/__init__.py +0 -0
- {src β instantMesh/src}/models/geometry/rep_3d/dmtet.py +0 -0
- {src β instantMesh/src}/models/geometry/rep_3d/dmtet_utils.py +0 -0
- {src β instantMesh/src}/models/geometry/rep_3d/extract_texture_map.py +0 -0
- {src β instantMesh/src}/models/geometry/rep_3d/flexicubes.py +0 -0
- {src β instantMesh/src}/models/geometry/rep_3d/flexicubes_geometry.py +0 -0
- {src β instantMesh/src}/models/geometry/rep_3d/tables.py +0 -0
- {src β instantMesh/src}/models/lrm.py +0 -0
- {src β instantMesh/src}/models/lrm_mesh.py +0 -0
- {src β instantMesh/src}/models/renderer/__init__.py +0 -0
- {src β instantMesh/src}/models/renderer/synthesizer.py +0 -0
- {src β instantMesh/src}/models/renderer/synthesizer_mesh.py +0 -0
- {src β instantMesh/src}/models/renderer/utils/__init__.py +0 -0
- {src β instantMesh/src}/models/renderer/utils/math_utils.py +0 -0
- {src β instantMesh/src}/models/renderer/utils/ray_marcher.py +0 -0
- {src β instantMesh/src}/models/renderer/utils/ray_sampler.py +0 -0
- {src β instantMesh/src}/models/renderer/utils/renderer.py +0 -0
- instantMesh/src/utils/__init__.py +0 -0
- {src β instantMesh/src}/utils/camera_util.py +0 -0
- {src β instantMesh/src}/utils/infer_util.py +0 -0
- {src β instantMesh/src}/utils/mesh_util.py +0 -0
- {src β instantMesh/src}/utils/train_util.py +0 -0
- {zero123plus β instantMesh/zero123plus}/pipeline.py +0 -0
- launch/image_generation.py +1 -1
- 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 |
-
|
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
|