From af09b1c3a40c90f45748d0f4c42f1a040f01d0ae Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Wed, 22 Jan 2025 08:22:21 +0200 Subject: [PATCH] return relative glb path --- nodes.py | 4 +++- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index 209714c..3ef5e2a 100644 --- a/nodes.py +++ b/nodes.py @@ -425,8 +425,10 @@ class Hy3DExportMesh: output_glb_path = Path(full_output_folder, f'{filename}_{counter:05}_.glb') output_glb_path.parent.mkdir(exist_ok=True) mesh.export(output_glb_path) + + relative_path = Path(subfolder) / f'{filename}_{counter:05}_.glb' - return (str(output_glb_path), ) + return (str(relative_path), ) NODE_CLASS_MAPPINGS = { "Hy3DModelLoader": Hy3DModelLoader, diff --git a/requirements.txt b/requirements.txt index 33fc2ef..28c0024 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ trimesh -diffusers +diffusers>=0.31.0 accelerate huggingface_hub einops