diff --git a/apps/image_to_3d.py b/apps/image_to_3d.py index 88883f4..a4d655a 100644 --- a/apps/image_to_3d.py +++ b/apps/image_to_3d.py @@ -498,4 +498,4 @@ with gr.Blocks(delete_cache=(43200, 43200), theme=custom_theme) as demo: if __name__ == "__main__": - demo.launch(server_name="10.34.8.82", server_port=8081) + demo.launch() diff --git a/apps/text_to_3d.py b/apps/text_to_3d.py index a36a99f..d0c2292 100644 --- a/apps/text_to_3d.py +++ b/apps/text_to_3d.py @@ -478,4 +478,4 @@ with gr.Blocks(delete_cache=(43200, 43200), theme=custom_theme) as demo: if __name__ == "__main__": - demo.launch(server_name="10.34.8.82", server_port=8082) + demo.launch() diff --git a/apps/texture_edit.py b/apps/texture_edit.py index 8d14bca..e65a556 100644 --- a/apps/texture_edit.py +++ b/apps/texture_edit.py @@ -379,4 +379,4 @@ with gr.Blocks(delete_cache=(43200, 43200), theme=custom_theme) as demo: if __name__ == "__main__": - demo.launch(server_name="10.34.8.82", server_port=8083) + demo.launch() diff --git a/embodied_gen/scripts/imageto3d.py b/embodied_gen/scripts/imageto3d.py index 4ebcca8..847252c 100644 --- a/embodied_gen/scripts/imageto3d.py +++ b/embodied_gen/scripts/imageto3d.py @@ -20,7 +20,7 @@ import logging import os import sys from glob import glob -from shutil import copy, copytree +from shutil import copy, copytree, rmtree import numpy as np import trimesh @@ -294,6 +294,8 @@ if __name__ == "__main__": # Organize the final result files result_dir = f"{output_root}/result" + if os.path.exists(result_dir): + rmtree(result_dir, ignore_errors=True) os.makedirs(result_dir, exist_ok=True) copy(urdf_path, f"{result_dir}/{os.path.basename(urdf_path)}") copytree(