From 6c697dbdf7820bb2bc581d1be480a402a0e4e335 Mon Sep 17 00:00:00 2001 From: Bruno Fargnoli Date: Fri, 5 Jun 2026 10:33:34 +0200 Subject: [PATCH] Added more workflows --- .../Describe Image with QwenVL.json | 4 +- setup/Describe Image with QwenVL.json | 44 +++++++ setup/Gen Mesh Only with Trellis2.json | 8 +- setup/Texture Mesh with Trellis2.json | 119 ++++++++++++++++++ setup/setup.json | 25 ++++ 5 files changed, 194 insertions(+), 6 deletions(-) create mode 100644 setup/Describe Image with QwenVL.json create mode 100644 setup/Texture Mesh with Trellis2.json diff --git a/comfyui_workflows/Describe Image with QwenVL.json b/comfyui_workflows/Describe Image with QwenVL.json index f0c868c..30c9797 100644 --- a/comfyui_workflows/Describe Image with QwenVL.json +++ b/comfyui_workflows/Describe Image with QwenVL.json @@ -21,11 +21,11 @@ }, "2": { "inputs": { - "image": "1780132597996-488734755.png" + "image": "" }, "class_type": "LoadImage", "_meta": { - "title": "Load Image" + "title": "Source Image" } }, "3": { diff --git a/setup/Describe Image with QwenVL.json b/setup/Describe Image with QwenVL.json new file mode 100644 index 0000000..30c9797 --- /dev/null +++ b/setup/Describe Image with QwenVL.json @@ -0,0 +1,44 @@ +{ + "1": { + "inputs": { + "model_name": "Qwen3-VL-4B-Instruct", + "quantization": "None (FP16)", + "attention_mode": "auto", + "preset_prompt": "🖼️ Detailed Description", + "custom_prompt": "", + "max_tokens": 512, + "keep_model_loaded": true, + "seed": 1, + "image": [ + "2", + 0 + ] + }, + "class_type": "AILab_QwenVL", + "_meta": { + "title": "QwenVL" + } + }, + "2": { + "inputs": { + "image": "" + }, + "class_type": "LoadImage", + "_meta": { + "title": "Source Image" + } + }, + "3": { + "inputs": { + "output": "", + "source": [ + "1", + 0 + ] + }, + "class_type": "Display Any (rgthree)", + "_meta": { + "title": "Display Any (rgthree)" + } + } +} \ No newline at end of file diff --git a/setup/Gen Mesh Only with Trellis2.json b/setup/Gen Mesh Only with Trellis2.json index 31ba503..1d3fc61 100644 --- a/setup/Gen Mesh Only with Trellis2.json +++ b/setup/Gen Mesh Only with Trellis2.json @@ -42,7 +42,7 @@ }, "194": { "inputs": { - "padding": 10, + "padding": 5, "remove_background": false, "max_size": 1024, "image": [ @@ -113,11 +113,11 @@ "seed": 304843910, "sparse_structure_steps": 25, "sparse_structure_guidance_strength": 7.5, - "sparse_structure_guidance_rescale": 0.7, + "sparse_structure_guidance_rescale": 0.01, "sparse_structure_rescale_t": 5, "sparse_structure_sampler": "heun", "sparse_structure_resolution": 32, - "sparse_structure_guidance_interval_start": 0.6, + "sparse_structure_guidance_interval_start": 0.1, "sparse_structure_guidance_interval_end": 1, "fill_holes": true, "hole_iterations": 1, @@ -149,7 +149,7 @@ "shape_guidance_rescale": 0.5, "shape_rescale_t": 3, "shape_sampler": "heun", - "shape_guidance_interval_start": 0.1, + "shape_guidance_interval_start": 0.6, "shape_guidance_interval_end": 1, "verbose": false, "dino_lock": 0.65, diff --git a/setup/Texture Mesh with Trellis2.json b/setup/Texture Mesh with Trellis2.json new file mode 100644 index 0000000..c936e5f --- /dev/null +++ b/setup/Texture Mesh with Trellis2.json @@ -0,0 +1,119 @@ +{ + "1": { + "inputs": { + "image": "" + }, + "class_type": "Trellis2LoadImageWithTransparency", + "_meta": { + "title": "Source Image" + } + }, + "2": { + "inputs": { + "modelname": "microsoft/TRELLIS.2-4B", + "backend": "flash_attn", + "device": "cuda", + "low_vram": true, + "keep_models_loaded": false, + "conv_backend": "flex_gemm", + "sparse_backend": "flash_attn", + "use_reconviagen": false + }, + "class_type": "Trellis2LoadModel", + "_meta": { + "title": "Trellis2 - LoadModel" + } + }, + "3": { + "inputs": { + "seed": 12345, + "texture_steps": 25, + "texture_guidance_strength": 7.5, + "texture_guidance_rescale": 0.01, + "texture_rescale_t": 3, + "resolution": 1024, + "texture_size": 4096, + "texture_alpha_mode": "OPAQUE", + "double_side_material": false, + "texture_guidance_interval_start": 0, + "texture_guidance_interval_end": 0.9, + "max_views": 1, + "bake_on_vertices": false, + "use_custom_normals": false, + "mesh_cluster_threshold_cone_half_angle_rad": 60, + "sampler": "heun", + "inpainting": "telea", + "verbose": false, + "dino_lock": 0.35, + "dino_substeps": 2, + "dino_foundation_cap": 0.92, + "pipeline": [ + "2", + 0 + ], + "image": [ + "18", + 0 + ], + "trimesh": [ + "8", + 0 + ] + }, + "class_type": "Trellis2MeshTexturing", + "_meta": { + "title": "Trellis2 - Mesh Texturing" + } + }, + "8": { + "inputs": { + "glb_path": "" + }, + "class_type": "Trellis2LoadMesh", + "_meta": { + "title": "Source Mesh" + } + }, + "11": { + "inputs": { + "filename_prefix": "3DGenStudioTexturedMesh", + "file_format": "glb", + "trimesh": [ + "3", + 0 + ] + }, + "class_type": "Trellis2ExportMesh", + "_meta": { + "title": "Trellis2 - Export Mesh" + } + }, + "12": { + "inputs": { + "model_file": [ + "11", + 0 + ], + "image": "" + }, + "class_type": "Preview3D", + "_meta": { + "title": "Preview 3D & Animation" + } + }, + "18": { + "inputs": { + "padding": 5, + "remove_background": false, + "max_size": 1024, + "image": [ + "1", + 2 + ] + }, + "class_type": "Trellis2PreProcessImage", + "_meta": { + "title": "Trellis2 - PreProcess Image" + } + } +} \ No newline at end of file diff --git a/setup/setup.json b/setup/setup.json index 1605c36..ac35403 100644 --- a/setup/setup.json +++ b/setup/setup.json @@ -338,6 +338,31 @@ "Outputs": [ { "Node": "5", "Name": "Save Mesh", "Type": "Mesh" } ] + }, + { + "Name": "Texture Mesh with Trellis2", + "File": "setup/Texture Mesh with Trellis2.json", + "Inputs": [ + { "Node": "1", "Input": "image", "Name": "Source Image", "Type": "Image" }, + { "Node": "8", "Input": "glb_path", "Name": "Source Mesh", "Type": "Mesh" }, + { "Node": "3", "Input": "texture_size", "Name": "Texture Size", "Type": "Number" } + ], + "Outputs": [ + { "Node": "12", "Name": "Output Mesh", "Type": "Mesh" } + ] + }, + { + "Name": "Describe Image with QwenVL", + "File": "setup/Describe Image with QwenVL.json", + "Inputs": [ + { "Node": "2", "Input": "image", "Name": "Source Image", "Type": "Image" }, + { "Node": "1", "Input": "max_tokens", "Name": "Max Tokens", "Type": "Number" }, + { "Node": "1", "Input": "custom_prompt", "Name": "Custom Prompt", "Type": "String" }, + { "Node": "1", "Input": "keep_model_loaded", "Name": "Keep Model Loaded", "Type": "Boolean" } + ], + "Outputs": [ + { "Node": "3", "Name": "Output Text", "Type": "String" } + ] } ] }