Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,6 @@ from src.misc.image_io import save_interpolated_video
|
|
27 |
from src.model.model.anysplat import AnySplat
|
28 |
from src.model.ply_export import export_ply
|
29 |
from src.utils.image import process_image
|
30 |
-
import trimesh
|
31 |
|
32 |
os.environ["ANYSPLAT_PROCESSED"] = f"{os.getcwd()}/proprocess_results"
|
33 |
|
@@ -77,10 +76,8 @@ def get_reconstructed_scene(outdir, model, device):
|
|
77 |
)
|
78 |
|
79 |
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
mesh.export(glbfile)
|
84 |
|
85 |
# Clean up
|
86 |
torch.cuda.empty_cache()
|
|
|
27 |
from src.model.model.anysplat import AnySplat
|
28 |
from src.model.ply_export import export_ply
|
29 |
from src.utils.image import process_image
|
|
|
30 |
|
31 |
os.environ["ANYSPLAT_PROCESSED"] = f"{os.getcwd()}/proprocess_results"
|
32 |
|
|
|
76 |
)
|
77 |
|
78 |
|
79 |
+
from instant_texture import Converter
|
80 |
+
Converter().convert(plyfile, glbfile) # outputs scene.glb with baked albedo
|
|
|
|
|
81 |
|
82 |
# Clean up
|
83 |
torch.cuda.empty_cache()
|