Transform your 3D texturing workflow with the power of generative AI, directly within Blender!
feat: preset diff preview, qwen presets, selective pbr regen, poll messages, remove glb validator
sakalondf8f4c1f1be50
diff --git a/installer.py b/installer.pyindex cc5b6d4..5d61979 100644--- a/installer.py+++ b/installer.py@@ -516,7 +516,7 @@ DEPENDENCIES: Dict[str, Dict[str, Any]] = {"target_dir_relative": "custom_nodes","repo_name": "ComfyUI-Marigold","license": "GPL-3.0", "packages": ["pbr_marigold"],- "pip_packages": ["diffusers>=0.28"],+ "pip_packages": ["diffusers>=0.28"] + (["triton-windows"] if sys.platform == "win32" else []),"run_install_script": True,},# --- StableDelight (specular-free albedo) ---@@ -664,12 +664,12 @@ MENU_PACKAGES: Dict[str, Dict[str, Any]] = {"size_gb": 9.8,"description_suffix": "*All models for preset functionality. You will still need to manually download your own SDXL checkpoint(s).*"},'3': {"name": "[RECOMMENDED] Full SDXL Setup (No Checkpoints)",- "tags": ["core", "preset_essentials", "extended_optional"],- "size_gb": 16.0,- "description_suffix": "*Downloads optional ControlNet and LoRA models. You will still need to manually download your own SDXL checkpoint(s).*"},+ "tags": ["core", "preset_essentials", "extended_optional", "pbr_marigold", "pbr_stabledelight"],+ "size_gb": 19.3,+ "description_suffix": "*Downloads optional ControlNet and LoRA models + PBR decomposition nodes. You will still need to manually download your own SDXL checkpoint(s).*"},'4': {"name": "[COMPLETE SDXL] Full SDXL Setup + RealVisXL V5.0 Checkpoint",- "tags": ["core", "preset_essentials", "extended_optional", "checkpoint_realvis"],- "size_gb": 23.0,+ "tags": ["core", "preset_essentials", "extended_optional", "pbr_marigold", "pbr_stabledelight", "checkpoint_realvis"],+ "size_gb": 26.3,"description_suffix": ""},'5': {"name": "[QWEN CORE] Models + GGUF Node","tags": ["qwen_core"],diff --git a/stablegen/__init__.py b/stablegen/__init__.pyindex 9d17200..f4eb45b 100644--- a/stablegen/__init__.py+++ b/stablegen/__init__.py@@ -1,7 +1,7 @@""" This script registers the addon. """import bpy # pylint: disable=import-error-from .stablegen import StableGenPanel, ApplyPreset, SavePreset, DeletePreset, get_preset_items, update_parameters, ResetQwenPrompt-from .stablegen import SG_UL_SceneQueueList, SceneQueueAdd, SceneQueueRemove, SceneQueueClear, SceneQueueMoveUp, SceneQueueMoveDown, SceneQueueOpenResult, SceneQueueProcess+from .stablegen import StableGenPanel, ApplyPreset, SavePreset, DeletePreset, get_preset_items, update_parameters, ResetQwenPrompt, SwitchToMeshGeneration+from .stablegen import SG_UL_SceneQueueList, SceneQueueAdd, SceneQueueRemove, SceneQueueClear, SceneQueueMoveUp, SceneQueueMoveDown, SceneQueueOpenResult, SceneQueueInvalidate, SceneQueueProcessfrom .render_tools import BakeTextures, AddCameras, CloneCamera, MirrorCamera, ToggleCameraLabels, SwitchMaterial, ExportOrbitGIF, ExportForGameEngine, CollectCameraPrompts, CameraPromptItem, CameraOrderItem, SG_UL_CameraOrderList, SyncCameraOrder, MoveCameraOrder, ApplyCameraOrderPresetfrom .debug_tools import debug_classes as _debug_classesfrom .utils import AddHDRI, ApplyModifiers, CurvesToMesh, sg_modal_active@@ -23,6 +23,7 @@ bl_info = {classes = [StableGenPanel,ApplyPreset,+ SwitchToMeshGeneration,SavePreset,DeletePreset,ResetQwenPrompt,@@ -56,6 +57,7 @@ classes = [SceneQueueMoveUp,SceneQueueMoveDown,SceneQueueOpenResult,+ SceneQueueInvalidate,SceneQueueProcess,]@@ -68,6 +70,24 @@ _pending_checkpoint_refresh_architecture = None# Counter for in-flight async refresh operations (checkpoint, LoRA, controlnet).# The UI checks this to display a "Refreshing…" indicator._pending_refreshes = 0+_refresh_started_at = 0.0 # monotonic timestamp of first in-flight refresh+_REFRESH_TIMEOUT = 30.0 # seconds before we force-clear a stuck indicator++import time as _time_mod++def _inc_pending_refreshes():+ """Increment the in-flight refresh counter (call from main thread)."""+ global _pending_refreshes, _refresh_started_at+ if _pending_refreshes <= 0:+ _refresh_started_at = _time_mod.monotonic()+ _pending_refreshes += 1++def _dec_pending_refreshes():+ """Decrement the in-flight refresh counter (call from main thread)."""+ global _pending_refreshes, _refresh_started_at+ _pending_refreshes = max(0, _pending_refreshes - 1)+ if _pending_refreshes <= 0:+ _refresh_started_at = 0.0# ---------------------------------------------------------------------------# Async network helper — run blocking I/O off the main thread@@ -272,8 +292,10 @@ def update_combined(self, context):result['online'] = check_server_availability(server_address, timeout=get_timeout('ping'))if result['online']:result['trellis2'] = check_trellis2_available(server_address, timeout=get_timeout('api'))+ result['pbr'] = check_pbr_available(server_address, timeout=get_timeout('api'))else:result['trellis2'] = False+ result['pbr'] = Falsereturn resultdef _on_done(result):@@ -285,6 +307,7 @@ def update_combined(self, context):if hasattr(bpy.context, 'scene') and bpy.context.scene:bpy.context.scene.trellis2_available = result.get('trellis2', False)+ bpy.context.scene.pbr_nodes_available = result.get('pbr', False)if not result.get('online', False):print("ComfyUI server is not reachable.")@@ -519,12 +542,14 @@ class CheckServerStatus(bpy.types.Operator):@classmethoddef poll(cls, context):- # Can run if server address is setprefs = context.preferences.addons.get(__package__)- # Also check that another check isn't running if using threading later- # global _is_refreshing- # return prefs and prefs.preferences.server_address and not _is_refreshing- return prefs and prefs.preferences.server_address and not sg_modal_active(context) # Simplified for sync check+ if not prefs or not prefs.preferences.server_address:+ cls.poll_message_set("Server address not configured (check addon preferences)")+ return False+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")+ return False+ return Truedef execute(self, context):prefs = context.preferences.addons[__package__].preferences@@ -537,8 +562,10 @@ class CheckServerStatus(bpy.types.Operator):result['online'] = check_server_availability(server_addr, timeout=get_timeout('ping'))if result['online']:result['trellis2'] = check_trellis2_available(server_addr, timeout=get_timeout('api'))+ result['pbr'] = check_pbr_available(server_addr, timeout=get_timeout('api'))else:result['trellis2'] = False+ result['pbr'] = Falsereturn resultdef _on_done(result):@@ -549,6 +576,7 @@ class CheckServerStatus(bpy.types.Operator):if hasattr(bpy.context, 'scene') and bpy.context.scene:bpy.context.scene.trellis2_available = result.get('trellis2', False)+ bpy.context.scene.pbr_nodes_available = result.get('pbr', False)if result.get('online', False):print(f"ComfyUI server is online at {server_addr}.")@@ -604,9 +632,14 @@ class RefreshControlNetMappings(bpy.types.Operator):@classmethoddef poll(cls, context):- # Can run if server address is setprefs = context.preferences.addons.get(__package__)- return prefs and prefs.preferences.server_address and not sg_modal_active(context)+ if not prefs or not prefs.preferences.server_address:+ cls.poll_message_set("Server address not configured (check addon preferences)")+ return False+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")+ return False+ return Truedef execute(self, context):prefs = context.preferences.addons.get(__package__)@@ -628,8 +661,7 @@ class RefreshControlNetMappings(bpy.types.Operator):'existing_names': existing_model_names}def _on_done(result):- global _pending_refreshes- _pending_refreshes = max(0, _pending_refreshes - 1)+ _dec_pending_refreshes()if result is None:returnserver_models = result.get('server_models')@@ -695,8 +727,7 @@ class RefreshControlNetMappings(bpy.types.Operator):area.tag_redraw()_run_async(_bg_work, _on_done)- global _pending_refreshes- _pending_refreshes += 1+ _inc_pending_refreshes()self.report({'INFO'}, "Fetching ControlNet models...")return {'FINISHED'}@@ -773,6 +804,36 @@ def check_trellis2_available(server_address, timeout=1.0):print(f" Initial server check failed: Unexpected Error ({e}).")return False+def check_pbr_available(server_address, timeout=1.0):+ """+ Checks if PBR decomposition custom nodes are installed in ComfyUI.++ Looks for MarigoldModelLoader (ComfyUI-Marigold) and+ LoadStableDelightModel (ComfyUI_StableDelight_ll).++ Args:+ server_address (str): The address:port of the ComfyUI server.+ timeout (float): Timeout in seconds.++ Returns:+ bool: True if both node packages are detected, False otherwise.+ """+ if not server_address:+ return False+ required = ['MarigoldModelLoader', 'LoadStableDelightModel']+ try:+ for node_class in required:+ url = f"http://{server_address}/object_info/{node_class}"+ response = requests.get(url, timeout=timeout)+ if response.status_code != 200 or node_class not in response.json():+ print(f"[PBR] Auto-detect: node '{node_class}' NOT found in ComfyUI.")+ return False+ print("[PBR] Auto-detect: PBR decomposition nodes found in ComfyUI.")+ return True+ except Exception as e:+ print(f"[PBR] Auto-detect failed: {e}")+ return False+def fetch_from_comfyui_api(context, endpoint):"""Fetches data from a specified ComfyUI API endpoint.@@ -1103,7 +1164,13 @@ class RefreshCheckpointList(bpy.types.Operator):@classmethoddef poll(cls, context):prefs = context.preferences.addons.get(__package__)- return prefs and prefs.preferences.server_address and not sg_modal_active(context)+ if not prefs or not prefs.preferences.server_address:+ cls.poll_message_set("Server address not configured (check addon preferences)")+ return False+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")+ return False+ return Truedef execute(self, context):prefs = context.preferences.addons.get(__package__)@@ -1137,8 +1204,8 @@ class RefreshCheckpointList(bpy.types.Operator):def _on_done(result):"""Main-thread callback — update caches and UI."""- global _cached_checkpoint_list, _cached_checkpoint_architecture, _pending_refreshes- _pending_refreshes = max(0, _pending_refreshes - 1)+ global _cached_checkpoint_list, _cached_checkpoint_architecture+ _dec_pending_refreshes()if result is None:return@@ -1188,8 +1255,7 @@ class RefreshCheckpointList(bpy.types.Operator):area.tag_redraw()_run_async(_bg_work, _on_done)- global _pending_refreshes- _pending_refreshes += 1+ _inc_pending_refreshes()self.report({'INFO'}, "Fetching checkpoint list...")return {'FINISHED'}@@ -1202,7 +1268,13 @@ class RefreshLoRAList(bpy.types.Operator):@classmethoddef poll(cls, context):prefs = context.preferences.addons.get(__package__)- return prefs and prefs.preferences.server_address and not sg_modal_active(context)+ if not prefs or not prefs.preferences.server_address:+ cls.poll_message_set("Server address not configured (check addon preferences)")+ return False+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")+ return False+ return Truedef execute(self, context):prefs = context.preferences.addons.get(__package__)@@ -1216,8 +1288,8 @@ class RefreshLoRAList(bpy.types.Operator):return {'lora_list': _fetch_api_list(server_address, "/models/loras")}def _on_done(result):- global _cached_lora_list, _pending_refreshes- _pending_refreshes = max(0, _pending_refreshes - 1)+ global _cached_lora_list+ _dec_pending_refreshes()if result is None:return@@ -1261,8 +1333,7 @@ class RefreshLoRAList(bpy.types.Operator):area.tag_redraw()_run_async(_bg_work, _on_done)- global _pending_refreshes- _pending_refreshes += 1+ _inc_pending_refreshes()self.report({'INFO'}, "Fetching LoRA list...")return {'FINISHED'}@@ -1506,7 +1577,8 @@ def _sg_queue_save(processing=False, current_idx=0, phase='idle'):"prompt": it.prompt,"negative_prompt": it.negative_prompt,"status": it.status,- "retries": it.retries}+ "retries": it.retries,+ "error_reason": it.error_reason}for it in wm.sg_scene_queue]# GIF export settings (persist across .blend switches)gif_settings = {}@@ -1572,6 +1644,7 @@ def _sg_queue_load():new_item.negative_prompt = entry.get("negative_prompt", "")new_item.status = entry.get("status", "pending")new_item.retries = entry.get("retries", 0)+ new_item.error_reason = entry.get("error_reason", "")wm.sg_scene_queue_index = min(0, len(wm.sg_scene_queue) - 1)# Restore GIF export settings@@ -1701,6 +1774,7 @@ class SceneQueueItem(bpy.types.PropertyGroup):negative_prompt: bpy.props.StringProperty(name="Negative Prompt", default="") # type: ignorestatus: bpy.props.StringProperty(name="Status", default="pending") # type: ignoreretries: bpy.props.IntProperty(name="Retries", default=0) # type: ignore # how many times this item has been retried+ error_reason: bpy.props.StringProperty(name="Error Reason", default="") # type: ignore # last failure reasonclasses_to_append = [CheckServerStatus, RefreshCheckpointList, RefreshLoRAList, STABLEGEN_UL_ControlNetMappingList, ControlNetModelMappingItem, RefreshControlNetMappings, StableGenAddonPreferences, ControlNetUnit, LoRAUnit, AddControlNetUnit, RemoveControlNetUnit, AddLoRAUnit, RemoveLoRAUnit, SceneQueueItem]for cls in classes_to_append:@@ -1752,17 +1826,17 @@ def register():bpy.types.WindowManager.sg_queue_gif_engine = bpy.props.EnumProperty(name="Engine",items=[- ('BLENDER_WORKBENCH', "Workbench", ""),- ('EEVEE', "Eevee", ""),- ('CYCLES', "Cycles", ""),+ ('BLENDER_WORKBENCH', "Workbench", "Fast preview renderer — no lighting, flat shading"),+ ('EEVEE', "Eevee", "Real-time renderer — good quality with fast render times"),+ ('CYCLES', "Cycles", "Path-traced renderer — highest quality but slowest"),],default='CYCLES')bpy.types.WindowManager.sg_queue_gif_interpolation = bpy.props.EnumProperty(name="Rotation Curve",items=[- ('LINEAR', "Linear", "Constant speed"),- ('BEZIER', "Ease In/Out", "Smooth acceleration"),+ ('LINEAR', "Linear", "Constant rotation speed throughout the orbit"),+ ('BEZIER', "Ease In/Out", "Smooth acceleration and deceleration for a polished look"),],default='LINEAR')@@ -1787,10 +1861,10 @@ def register():bpy.types.WindowManager.sg_queue_gif_env_mode = bpy.props.EnumProperty(name="Environment Mode",items=[- ('FIXED', "Fixed", ""),- ('LOCKED', "Locked", ""),- ('COUNTER', "Counter-Rotate", ""),- ('ENV_ONLY', "Environment Only", ""),+ ('FIXED', "Fixed", "HDRI stays in place while the camera orbits"),+ ('LOCKED', "Locked", "HDRI rotates with the camera to keep lighting consistent"),+ ('COUNTER', "Counter-Rotate", "HDRI rotates opposite to the camera for dynamic lighting"),+ ('ENV_ONLY', "Environment Only", "Render only the HDRI environment without the object"),],default='FIXED')@@ -1887,17 +1961,17 @@ def register():name="Control After Generate",description="Control behavior after generation",items=[- ('fixed', 'Fixed', ''),- ('increment', 'Increment', ''),- ('decrement', 'Decrement', ''),- ('randomize', 'Randomize', '')+ ('fixed', 'Fixed', 'Keep the same seed every generation'),+ ('increment', 'Increment', 'Add 1 to the seed after each generation'),+ ('decrement', 'Decrement', 'Subtract 1 from the seed after each generation'),+ ('randomize', 'Randomize', 'Pick a random seed for every generation')],default='fixed',update=update_parameters)bpy.types.Scene.steps = bpy.props.IntProperty(name="Steps",- description="Number of steps for generation",+ description="Number of denoising steps. Higher values improve detail and coherence but take longer",default=8,min=0,max=200,@@ -1905,7 +1979,7 @@ def register():)bpy.types.Scene.cfg = bpy.props.FloatProperty(name="CFG",- description="Classifier-Free Guidance scale",+ description="Classifier-Free Guidance scale. Higher values follow the prompt more strictly but may reduce quality; lower values give more creative freedom",default=1.5,min=0.0,max=100.0,@@ -1945,7 +2019,7 @@ def register():)bpy.types.Scene.show_generation_params = bpy.props.BoolProperty(name="Show Generation Parameters",- description="Most important parameters",+ description="Toggle visibility of core generation settings (steps, CFG, sampler, scheduler, seed)",default=True,update=update_parameters)@@ -2309,7 +2383,7 @@ def register():("hm-mvgd-hm", "HM–MVGD–HM", ""),("hm-mkl-hm", "HM–MKL–HM", ""),],- default="reinhard",+ default="hm-mvgd-hm",update=update_parameters,)bpy.types.Scene.view_blend_color_match_strength = bpy.props.FloatProperty(@@ -2623,7 +2697,7 @@ def register():description="Select the model architecture to use for generation",items=[('sdxl', 'SDXL', ''),- ('flux1', 'Flux 1', ''),+ ('flux1', 'FLUX.1', ''),('qwen_image_edit', 'Qwen Image Edit', ''),('flux2_klein', 'FLUX.2 Klein', '')],@@ -2636,7 +2710,7 @@ def register():description="Select the overall generation architecture",items=[('sdxl', 'SDXL', 'Stable Diffusion XL'),- ('flux1', 'Flux 1', 'Flux 1 architecture'),+ ('flux1', 'FLUX.1', 'FLUX.1 architecture'),('qwen_image_edit', 'Qwen Image Edit', 'Qwen Image Edit architecture'),('flux2_klein', 'FLUX.2 Klein', 'FLUX.2 Klein multi-reference edit model (Apache 2.0)'),('trellis2', 'TRELLIS.2', 'Image to 3D mesh generation with TRELLIS.2'),@@ -2663,7 +2737,7 @@ def register():('none', 'None', 'Shape only, no texture generation'),('native', 'Native (TRELLIS.2)', 'Use TRELLIS.2 built-in texture generation'),('sdxl', 'SDXL', 'Use SDXL for camera-based texture projection'),- ('flux1', 'Flux 1', 'Use Flux 1 for camera-based texture projection'),+ ('flux1', 'FLUX.1', 'Use FLUX.1 for camera-based texture projection'),('qwen_image_edit', 'Qwen Image Edit', 'Use Qwen for camera-based texture projection'),('flux2_klein', 'FLUX.2 Klein', 'Use FLUX.2 Klein for camera-based texture projection'),],@@ -2676,7 +2750,7 @@ def register():description="Diffusion architecture used to generate the initial image when Generate From is set to Prompt and Texture Mode is Native or None",items=[('sdxl', 'SDXL', 'Stable Diffusion XL'),- ('flux1', 'Flux 1', 'Flux 1 architecture'),+ ('flux1', 'FLUX.1', 'FLUX.1 architecture'),('qwen_image_edit', 'Qwen Image Edit', 'Qwen Image Edit architecture'),('flux2_klein', 'FLUX.2 Klein', 'FLUX.2 Klein multi-reference edit'),],@@ -2811,6 +2885,18 @@ def register():update=update_parameters)+ bpy.types.Scene.trellis2_shade_mode = bpy.props.EnumProperty(+ name="Shading",+ description="Shading mode applied to imported TRELLIS.2 meshes",+ items=[+ ('flat', "Flat", "Keep flat shading (default)"),+ ('smooth', "Smooth", "Apply smooth shading to the entire mesh"),+ ('auto_smooth', "Auto Smooth", "Apply auto smooth shading by angle"),+ ],+ default='flat',+ update=update_parameters+ )+bpy.types.Scene.trellis2_clamp_elevation = bpy.props.BoolProperty(name="Clamp Elevation",description="Restrict camera elevation to avoid extreme top-down or bottom-up views that diffusion models often struggle with",@@ -3007,6 +3093,13 @@ def register():update=update_parameters)+ bpy.types.Scene.qwen_prompt_gray_background = bpy.props.BoolProperty(+ name="Gray Background Prompt",+ description="Include 'Replace the background with solid gray' in the default context-render prompt. Disable to let the model choose the background freely",+ default=True,+ update=update_parameters+ )+bpy.types.Scene.output_timestamp = bpy.props.StringProperty(name="Output Timestamp",description="Timestamp for generation output directory",@@ -3163,6 +3256,11 @@ def register():description="Whether TRELLIS.2 nodes are available on the ComfyUI server (auto-detected)",default=False)+ bpy.types.Scene.pbr_nodes_available = bpy.props.BoolProperty(+ name="PBR Nodes Available",+ description="Whether PBR decomposition nodes (Marigold IID + StableDelight) are available on the ComfyUI server (auto-detected)",+ default=False+ )bpy.types.Scene.show_trellis2_params = bpy.props.BoolProperty(name="Show TRELLIS.2 Section",description="Toggle TRELLIS.2 Image-to-3D section",@@ -3188,11 +3286,6 @@ def register():description="Toggle TRELLIS.2 camera placement settings",default=False)- bpy.types.Scene.show_trellis2_artifact_filter = bpy.props.BoolProperty(- name="Show Artifact Filtering",- description="Toggle TRELLIS.2 artifact filtering settings",- default=False- )bpy.types.Scene.trellis2_last_input_image = bpy.props.StringProperty(name="TRELLIS.2 Last Input Image",description="Path to the image most recently used as TRELLIS.2 input (set automatically after generation)",@@ -3403,12 +3496,6 @@ def register():default='black',update=update_parameters)- bpy.types.Scene.trellis2_fill_holes = bpy.props.BoolProperty(- name="Fill Holes",- description="Fill holes in the mesh during simplification (shape-only mode)",- default=True,- update=update_parameters- )# ── PBR Decomposition (Marigold IID) ──────────────────────────────bpy.types.Scene.pbr_decomposition = bpy.props.BoolProperty(@@ -3552,7 +3639,9 @@ def register():)bpy.types.Scene.pbr_emission_threshold = bpy.props.FloatProperty(name="Emission Threshold",- description="Minimum brightness/residual value to consider as emission. "+ description="Minimum value to consider as emission. "+ "In Residual mode, fades out low-luminance residuals. "+ "In HSV mode, zeroes the blurred mask below this cutoff. ""Higher = fewer false positives, lower = catches subtle glow",default=0.2,min=0.0,@@ -3723,12 +3812,18 @@ def register():default=True,update=update_parameters)- bpy.types.Scene.pbr_albedo_per_camera_saturation = bpy.props.BoolProperty(- name="Per Camera",- description="Compute saturation correction individually for each camera instead of "- "averaging across all cameras. May produce slightly different albedo "- "colours per view if the cameras have different lighting conditions",- default=False,+ bpy.types.Scene.pbr_albedo_saturation_mode = bpy.props.EnumProperty(+ name="Saturation Mode",+ description="How to compute the albedo saturation correction ratio. "+ "Mean averages all camera ratios (sensitive to outliers). "+ "Median takes the middle value (robust to outliers). "+ "Per Camera applies an individual ratio to each camera",+ items=[+ ('MEDIAN', "Median", "Use the median ratio across cameras (recommended, outlier-resistant)"),+ ('MEAN', "Mean", "Use the arithmetic mean of all camera ratios"),+ ('PER_CAMERA', "Per Camera", "Compute and apply an individual ratio for each camera"),+ ],+ default='MEDIAN',update=update_parameters)bpy.types.Scene.pbr_replace_color_with_albedo = bpy.props.BoolProperty(@@ -3746,46 +3841,6 @@ def register():update=update_parameters)- # Artifact Filtering- bpy.types.Scene.trellis2_artifact_laplacian_sigma = bpy.props.FloatProperty(- name="Laplacian Sigma",- description="Laplacian displacement outlier threshold in standard deviations. "- "Vertices displaced more than this many σ from the mesh-wide mean "- "are flagged as spikes. Lower = stricter filtering",- default=8.0,- min=1.0,- max=30.0,- step=10,- precision=1,- update=update_parameters- )- bpy.types.Scene.trellis2_artifact_spike_abs_max = bpy.props.IntProperty(- name="Max Spike Count",- description="Maximum number of Laplacian-outlier vertices allowed before "- "the mesh is considered corrupt and triggers a retry",- default=25,- min=1,- max=500,- update=update_parameters- )- bpy.types.Scene.trellis2_artifact_max_retries = bpy.props.IntProperty(- name="Max Retries",- description="Maximum number of retry attempts when artifact filtering "- "detects a corrupt mesh (each retry clears Triton cache and reboots ComfyUI)",- default=1,- min=0,- max=10,- update=update_parameters- )- bpy.types.Scene.trellis2_artifact_fail_on_exhausted = bpy.props.BoolProperty(- name="Fail on Exhausted Retries",- description="When enabled, the generation will fail instead of proceeding with a "- "potentially corrupt mesh if all artifact-filter retries are exhausted. "- "In queue mode this counts as a failure and triggers a queue-level retry",- default=False,- update=update_parameters- )-def unregister():"""Unregisters the addon.@@ -3915,6 +3970,7 @@ def unregister():del bpy.types.Scene.qwen_context_cleanup_hue_tolerancedel bpy.types.Scene.qwen_context_cleanup_value_adjustdel bpy.types.Scene.qwen_context_fallback_dilation+ del bpy.types.Scene.qwen_prompt_gray_backgrounddel bpy.types.Scene.qwen_timestep_zero_ref# --- PBR Decomposition Properties ---@@ -3933,7 +3989,7 @@ def unregister():'pbr_tile_albedo', 'pbr_tile_material', 'pbr_tile_normal', 'pbr_tile_height','pbr_tile_emission', 'pbr_tile_grid', 'pbr_tile_superres','pbr_processing_resolution', 'pbr_denoise_steps', 'pbr_ensemble_size',- 'pbr_albedo_auto_saturation', 'pbr_albedo_per_camera_saturation',+ 'pbr_albedo_auto_saturation', 'pbr_albedo_saturation_mode','pbr_replace_color_with_albedo', 'pbr_auto_lighting','pbr_model_variant', # legacy, kept for compat]@@ -3943,7 +3999,7 @@ def unregister():# --- TRELLIS.2 Properties ---trellis2_props = [- 'trellis2_available', 'show_trellis2_params', 'show_trellis2_advanced',+ 'trellis2_available', 'pbr_nodes_available', 'show_trellis2_params', 'show_trellis2_advanced','show_trellis2_mesh_settings', 'show_trellis2_texture_settings','show_trellis2_camera_settings','trellis2_last_input_image', 'qwen_use_trellis2_style', 'qwen_trellis2_style_initial_only',@@ -3957,7 +4013,7 @@ def unregister():'trellis2_consider_existing', 'trellis2_delete_cameras','trellis2_coverage_target','trellis2_max_auto_cameras', 'trellis2_fan_angle',- 'trellis2_import_scale',+ 'trellis2_import_scale', 'trellis2_shade_mode','trellis2_clamp_elevation', 'trellis2_max_elevation', 'trellis2_min_elevation','trellis2_preview_gallery_enabled', 'trellis2_preview_gallery_count','trellis2_input_image', 'trellis2_resolution', 'trellis2_vram_mode',@@ -3968,10 +4024,6 @@ def unregister():'trellis2_post_processing_enabled','trellis2_auto_lighting','trellis2_skip_texture', 'trellis2_bg_removal', 'trellis2_background_color',- 'trellis2_fill_holes',- 'trellis2_artifact_laplacian_sigma', 'trellis2_artifact_spike_abs_max',- 'trellis2_artifact_max_retries', 'trellis2_artifact_fail_on_exhausted',- 'show_trellis2_artifact_filter',]for prop in trellis2_props:if hasattr(bpy.types.Scene, prop):diff --git a/stablegen/debug_tools.py b/stablegen/debug_tools.pyindex 19d8ba4..4859294 100644--- a/stablegen/debug_tools.py+++ b/stablegen/debug_tools.py@@ -27,7 +27,7 @@ from .render_tools import (export_visibility,_get_camera_resolution,)-from .utils import get_file_path, get_generation_dirs, ensure_dirs_exist+from .utils import get_file_path, get_generation_dirs, ensure_dirs_exist, sg_modal_active# ─── Shared helpers ──────────────────────────────────────────────────────@@ -55,11 +55,8 @@ def _common_poll(cls, context):if not _get_cameras(context):return False# Block while another heavy modal is running- for w in context.window_manager.windows:- for op in w.modal_operators:- if op.bl_idname in ('OBJECT_OT_test_stable', 'OBJECT_OT_bake_textures',- 'OBJECT_OT_add_cameras'):- return False+ if sg_modal_active(context):+ return Falsereturn True@@ -816,6 +813,8 @@ class SG_OT_DebugRestoreMaterial(bpy.types.Operator):prefs = context.preferences.addons.get(__package__)if not prefs or not prefs.preferences.enable_debug:return False+ if sg_modal_active(context):+ return Falsereturn bool(_get_target_meshes(context))def execute(self, context):diff --git a/stablegen/generator.py b/stablegen/generator.pyindex ead1ff7..d933201 100644--- a/stablegen/generator.py+++ b/stablegen/generator.py@@ -24,7 +24,7 @@ from gpu_extras.batch import batch_for_shader # pylint: disable=import-errorfrom .util.helpers import prompt_text, prompt_text_img2img, prompt_text_qwen_image_edit # pylint: disable=relative-beyond-top-levelfrom .render_tools import export_emit_image, export_visibility, export_canny, bake_texture, prepare_baking, unwrap, export_render, export_viewport, render_edge_feather_mask, _SGCameraResolution, _get_camera_resolution, _sg_restore_square_display, _sg_remove_crop_overlay, _sg_ensure_crop_overlay, _sg_hide_label_overlay, _sg_restore_label_overlay # pylint: disable=relative-beyond-top-level-from .utils import get_last_material_index, get_generation_dirs, get_file_path, get_dir_path, remove_empty_dirs, get_compositor_node_tree, configure_output_node_paths, get_eevee_engine_id # pylint: disable=relative-beyond-top-level+from .utils import get_last_material_index, get_generation_dirs, get_file_path, get_dir_path, remove_empty_dirs, get_compositor_node_tree, configure_output_node_paths, get_eevee_engine_id, sg_modal_active # pylint: disable=relative-beyond-top-levelfrom .project import project_image, reinstate_compare_nodes # pylint: disable=relative-beyond-top-levelfrom .workflows import WorkflowManagerfrom .util.mirror_color import MirrorReproject, _get_viewport_ref_np, _apply_color_match_to_file@@ -114,33 +114,21 @@ class Regenerate(bpy.types.Operator):_to_texture = None@classmethoddef poll(cls, context):- """- Polls whether the operator can be executed.- :param context: Blender context.- :return: True if the operator can be executed, False otherwise.- """- # Check for other modal operators- operator = Noneaddon_prefs = context.preferences.addons[__package__].preferencesif not os.path.exists(addon_prefs.output_dir):+ cls.poll_message_set("Output directory not set or does not exist")return Falseif not addon_prefs.server_address or not addon_prefs.server_online:+ cls.poll_message_set("ComfyUI server is not connected")return Falseif not (context.scene.generation_method == 'sequential' or context.scene.generation_method == 'separate'):+ cls.poll_message_set("Regenerate is only available in Sequential or Separate mode")return Falseif context.scene.output_timestamp == "":+ cls.poll_message_set("No previous generation to regenerate from")return False- for window in context.window_manager.windows:- for op in window.modal_operators:- if op.bl_idname == 'OBJECT_OT_add_cameras' or op.bl_idname == 'OBJECT_OT_bake_textures' or\- op.bl_idname == 'OBJECT_OT_collect_camera_prompts' or op.bl_idname == 'OBJECT_OT_test_stable' or\- op.bl_idname == 'OBJECT_OT_stablegen_reproject' or op.bl_idname == 'OBJECT_OT_stablegen_regenerate' \- or context.scene.generation_status == 'waiting':- operator = op- break- if operator:- break- if operator:+ if context.scene.generation_status == 'waiting' or sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")return Falsereturn True@@ -164,7 +152,7 @@ class Regenerate(bpy.types.Operator):self._to_texture = [obj for obj in bpy.context.selected_objects if obj.type == 'MESH']# If empty, cancel the operationif not self._to_texture:- self.report({'ERROR'}, "No mesh objects selected for texturing.")+ self.report({'ERROR'}, "No mesh objects selected. Select mesh objects in the viewport before regenerating.")context.scene.generation_status = 'idle'ComfyUIGenerate._is_running = Falsereturn {'CANCELLED'}@@ -228,26 +216,11 @@ class Reproject(bpy.types.Operator):_timer = None@classmethoddef poll(cls, context):- """- Polls whether the operator can be executed.- :param context: Blender context.- :return: True if the operator can be executed, False otherwise.- """- # Check for other modal operators- operator = Noneif context.scene.output_timestamp == "":+ cls.poll_message_set("No previous generation to reproject from")return False- for window in context.window_manager.windows:- for op in window.modal_operators:- if op.bl_idname == 'OBJECT_OT_add_cameras' or op.bl_idname == 'OBJECT_OT_bake_textures' or\- op.bl_idname == 'OBJECT_OT_collect_camera_prompts' or op.bl_idname == 'OBJECT_OT_test_stable' or\- op.bl_idname == 'OBJECT_OT_stablegen_reproject' or op.bl_idname == 'OBJECT_OT_stablegen_regenerate' \- or context.scene.generation_status == 'waiting':- operator = op- break- if operator:- break- if operator:+ if context.scene.generation_status == 'waiting' or sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")return Falsereturn True@@ -567,29 +540,21 @@ class ComfyUIGenerate(bpy.types.Operator):@classmethoddef poll(cls, context):- """- Polls whether the operator can be executed.- :param context: Blender context.- :return: True if the operator can be executed, False otherwise.- """+ if cls._is_running:+ return True # Allow cancellation# Check for other modal operators- operator = None- for window in context.window_manager.windows:- for op in window.modal_operators:- if op.bl_idname == 'OBJECT_OT_add_cameras' or op.bl_idname == 'OBJECT_OT_bake_textures' or op.bl_idname == 'OBJECT_OT_collect_camera_prompts' or context.scene.generation_status == 'waiting':- operator = op- break- if operator:- break- if operator:+ if context.scene.generation_status == 'waiting' or sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")return False- # Check if output directory, model directory, and server address are setaddon_prefs = context.preferences.addons[__package__].preferencesif not os.path.exists(addon_prefs.output_dir):+ cls.poll_message_set("Output directory not set or does not exist (check addon preferences)")return Falseif not addon_prefs.server_address or not addon_prefs.server_online:+ cls.poll_message_set("ComfyUI server is not connected")return False- if bpy.app.online_access == False: # Check if online access is disabled+ if bpy.app.online_access == False:+ cls.poll_message_set("Blender's online access is disabled (File → Preferences → System)")return Falsereturn True@@ -682,7 +647,7 @@ class ComfyUIGenerate(bpy.types.Operator):self._cameras = [obj for obj in bpy.context.scene.objects if obj.type == 'CAMERA']if not self._cameras:- self.report({'ERROR'}, "No cameras found in the scene.")+ self.report({'ERROR'}, "No cameras found in the scene. Use 'Add Cameras' to create them.")context.scene.generation_status = 'idle'context.scene.sg_last_gen_error = TrueComfyUIGenerate._is_running = False@@ -732,7 +697,7 @@ class ComfyUIGenerate(bpy.types.Operator):# Check if there is at least one ControlNet unitcontrolnet_units = getattr(context.scene, "controlnet_units", [])if not controlnet_units and not (context.scene.use_flux_lora and context.scene.model_architecture == 'flux1') and context.scene.model_architecture != 'flux2_klein':- self.report({'ERROR'}, "At least one ControlNet unit is required to run the operator.")+ self.report({'ERROR'}, "At least one ControlNet unit is required. Add one in the Guidance section below.")context.scene.generation_status = 'idle'context.scene.sg_last_gen_error = TrueComfyUIGenerate._is_running = False@@ -743,7 +708,7 @@ class ComfyUIGenerate(bpy.types.Operator):# If there are curves within the scene, warn the userif any(obj.type == 'CURVE' for obj in bpy.context.view_layer.objects):- self.report({'WARNING'}, "Curves detected in the scene. This may cause issues with the generation process. Consider removing them before proceeding.")+ self.report({'WARNING'}, "Curves detected in the scene. Consider using 'Convert Curves to Mesh' in the Tools section.")if context.scene.generation_mode == 'project_only':print(f"Reprojecting images for {len(self._cameras)} cameras")@@ -778,7 +743,7 @@ class ComfyUIGenerate(bpy.types.Operator):# 1 temporary buffer UV slot for the UV Project modifierhas_buffer = obj.data.uv_layers.get("_SG_ProjectionBuffer") is not Noneif not has_buffer and len(obj.data.uv_layers) >= 8:- self.report({'ERROR'}, "Not enough UV map slots. Please remove at least 1 UV map to free a slot for the projection buffer.")+ self.report({'ERROR'}, "Not enough UV map slots (max 8). Remove an existing UV map on the object to free a slot for the projection buffer.")context.scene.generation_status = 'idle'context.scene.sg_last_gen_error = TrueComfyUIGenerate._is_running = False@@ -853,7 +818,7 @@ class ComfyUIGenerate(bpy.types.Operator):else:error = Trueif error:- self.report({'ERROR'}, f"Cannot use UV inpainting with the material of object '{obj.name}': incompatible material. The generated material has to be active.")+ self.report({'ERROR'}, f"Cannot use UV inpainting with the material of object '{obj.name}'. The generated StableGen material must be the active material.")context.scene.generation_status = 'idle'ComfyUIGenerate._is_running = Falserender.resolution_percentage = self._original_resolution_percentage@@ -1584,6 +1549,7 @@ class ComfyUIGenerate(bpy.types.Operator):self._pbr_maps = {}# Collect camera images that need PBR decompositioncamera_images = {} # cam_idx → image_path+ per_camera_missing = {} # cam_idx → set of missing map names (reproject only)num_cameras = len(self._cameras)for cam_idx in range(num_cameras):cam_image_path = get_file_path(@@ -1595,23 +1561,33 @@ class ComfyUIGenerate(bpy.types.Operator):# maps when all enabled maps are already on disk. This# avoids re-running the slow ComfyUI decomposition.if context.scene.generation_mode == 'project_only':- existing = self._find_existing_pbr_maps(+ existing, missing = self._find_existing_pbr_maps(context, cam_idx)- if existing:- # Ensure raw copies exist for backward compat- # (pre-feature files). Batch post-processing- # runs after the loop collects all cameras.+ if not missing:+ # All maps present — fully reuseself._ensure_raw_copies(context, cam_idx, existing)self._pbr_maps[cam_idx] = existingprint(f"[StableGen] Reusing existing PBR maps "f"for camera {cam_idx}")continue+ # Some maps exist, some are missing — seed existing+ # maps so the batched function only generates what's+ # missing.+ if existing:+ self._ensure_raw_copies(+ context, cam_idx, existing)+ self._pbr_maps[cam_idx] = existing+ per_camera_missing[cam_idx] = missingprint(f"[StableGen] PBR maps missing for camera "- f"{cam_idx}, running decomposition…")+ f"{cam_idx}: {missing}, running selective decomposition…")camera_images[cam_idx] = cam_image_pathif camera_images:- self._run_pbr_decomposition_batched(context, camera_images)+ self._run_pbr_decomposition_batched(+ context, camera_images,+ per_camera_missing=per_camera_missing if per_camera_missing else None)+ if self._error:+ return# ── Batch post-processing (albedo sat/contrast, roughness scale) ──# Runs after ALL cameras have raw maps saved, so auto-saturation@@ -1619,6 +1595,12 @@ class ComfyUIGenerate(bpy.types.Operator):if self._pbr_maps:self._apply_albedo_postprocessing_batch(context)+ # ── Persist per-map settings hashes so future reprojects can+ # detect stale maps and only regenerate what changed. ──+ if camera_images:+ for cam_idx in camera_images:+ self._save_pbr_settings(context, cam_idx)+def image_project_callback():if context.scene.generation_method == 'sequential':# In sequential mode, projection happened per-camera inside the loop.@@ -1752,15 +1734,160 @@ class ComfyUIGenerate(bpy.types.Operator):self._uploaded_images_cache.pop(os.path.abspath(image_path), None)# ── PBR Decomposition ──────────────────────────────────────────────++ @staticmethod+ def _pbr_settings_hash(settings_dict):+ """Return a short hex hash for a dict of PBR settings."""+ import hashlib+ raw = json.dumps(settings_dict, sort_keys=True, default=str)+ return hashlib.md5(raw.encode()).hexdigest()[:12]++ def _pbr_per_map_settings(self, context):+ """Compute per-map settings dicts that affect each PBR output.++ Returns ``{map_name: {setting_key: value, ...}}`` for every+ map type. Two dicts compare equal iff the same generation would+ produce identical output.++ Tiling modes are resolved to effective booleans so that e.g.+ ``selective`` (albedo-only) and ``custom`` with only albedo+ enabled produce identical hashes for every map.+ """+ scene = context.scene+ # ── Common model settings (affect all server-side outputs) ────+ common = {+ 'resolution': getattr(scene, 'pbr_processing_resolution', 768),+ 'native_res': getattr(scene, 'pbr_use_native_resolution', True),+ 'denoise_steps': getattr(scene, 'pbr_denoise_steps', 4),+ 'ensemble_size': getattr(scene, 'pbr_ensemble_size', 1),+ }++ albedo_source = getattr(scene, 'pbr_albedo_source', 'delight')++ # ── Resolve effective per-map tiling booleans ─────────────────+ tile_mode = getattr(scene, 'pbr_tiling', 'off')+ tile_grid = getattr(scene, 'pbr_tile_grid', 2)+ tile_superres = getattr(scene, 'pbr_tile_superres', False)++ tile_albedo = getattr(scene, 'pbr_tile_albedo', True) if tile_mode == 'custom' else (tile_mode in ('selective', 'all'))+ tile_material = getattr(scene, 'pbr_tile_material', False) if tile_mode == 'custom' else (tile_mode == 'all')+ tile_normal = getattr(scene, 'pbr_tile_normal', False) if tile_mode == 'custom' else (tile_mode == 'all')+ tile_height = getattr(scene, 'pbr_tile_height', False) if tile_mode == 'custom' else (tile_mode == 'all')+ tile_emission = getattr(scene, 'pbr_tile_emission', False) if tile_mode == 'custom' else False++ def tiling_dict(is_tiled):+ """Return tiling sub-dict; grid/superres only matter when tiled."""+ if is_tiled:+ return {'tiled': True, 'tile_grid': tile_grid,+ 'tile_superres': tile_superres}+ return {'tiled': False}++ settings = {}++ settings['albedo'] = {+ **common,+ **tiling_dict(tile_albedo),+ 'source': albedo_source,+ 'delight_strength': getattr(scene, 'pbr_delight_strength', 1.0) if albedo_source == 'delight' else None,+ 'auto_saturation': getattr(scene, 'pbr_albedo_auto_saturation', False),+ 'saturation_mode': getattr(scene, 'pbr_albedo_saturation_mode', 'MEDIAN') if getattr(scene, 'pbr_albedo_auto_saturation', False) else None,+ }+ settings['roughness'] = {+ **common,+ **tiling_dict(tile_material),+ }+ settings['metallic'] = {+ **common,+ **tiling_dict(tile_material),+ }+ settings['normal'] = {+ **common,+ **tiling_dict(tile_normal),+ }+ settings['height'] = {+ **common,+ **tiling_dict(tile_height),+ }++ emission_method = getattr(scene, 'pbr_emission_method', 'residual')+ emission_base = {+ 'method': emission_method,+ 'threshold': getattr(scene, 'pbr_emission_threshold', 0.2),+ }+ if emission_method == 'hsv':+ emission_base.update({+ 'sat_min': getattr(scene, 'pbr_emission_saturation_min', 0.5),+ 'val_min': getattr(scene, 'pbr_emission_value_min', 0.85),+ 'bloom': getattr(scene, 'pbr_emission_bloom', 5.0),+ })+ else:+ # Residual method uses a model pass+ emission_base.update({+ **common,+ **tiling_dict(tile_emission),+ })+ settings['emission'] = emission_base++ return settings++ def _pbr_sidecar_path(self, context):+ """Return the path for the single PBR settings sidecar JSON file."""+ dirs = get_generation_dirs(context)+ base_dir = dirs["pbr"]+ material_suffix = f"-{self._material_id}" if self._material_id is not None else ""+ return os.path.join(base_dir, f"pbr_settings{material_suffix}.json")++ def _save_pbr_settings(self, context, camera_id):+ """Write current per-map settings hashes for *camera_id* into+ the shared sidecar JSON file (merges with existing data)."""+ settings = self._pbr_per_map_settings(context)+ hashes = {k: self._pbr_settings_hash(v) for k, v in settings.items()}+ path = self._pbr_sidecar_path(context)+ # Load existing data to merge+ data = {}+ if os.path.exists(path):+ try:+ with open(path, 'r') as f:+ data = json.load(f)+ except Exception:+ pass+ data[str(camera_id)] = hashes+ try:+ os.makedirs(os.path.dirname(path), exist_ok=True)+ with open(path, 'w') as f:+ json.dump(data, f, indent=1)+ except Exception as e:+ print(f"[StableGen] Warning: could not write PBR settings "+ f"sidecar {path}: {e}")++ def _load_pbr_settings(self, context, camera_id):+ """Load stored per-map settings hashes for *camera_id* from the+ shared sidecar JSON file.++ Returns a dict ``{map_name: hash_string}`` or ``None`` if no+ sidecar or camera entry exists.+ """+ path = self._pbr_sidecar_path(context)+ if not os.path.exists(path):+ return None+ try:+ with open(path, 'r') as f:+ data = json.load(f)+ return data.get(str(camera_id))+ except Exception:+ return None+def _find_existing_pbr_maps(self, context, camera_id):- """Check if all enabled PBR maps already exist on disk for a camera.+ """Check which enabled PBR maps already exist on disk for a camera.- Returns a dict ``{map_name: file_path}`` when every required map- is present, or ``None`` if any enabled map is missing (the caller- should run decomposition in that case).+ Returns ``(existing, missing)`` where *existing* is a dict+ ``{map_name: file_path}`` of maps already on disk **whose settings+ hash matches the current configuration**, and *missing* is a set of+ map names that are enabled but either not found or stale."""scene = context.sceneexisting = {}+ missing = set()map_checks = []if getattr(scene, 'pbr_map_albedo', True):@@ -1777,7 +1904,13 @@ class ComfyUIGenerate(bpy.types.Operator):map_checks.append('emission')if not map_checks:- return None+ return existing, missing++ # Load stored hashes and compute current ones for comparison+ stored_hashes = self._load_pbr_settings(context, camera_id)+ current_settings = self._pbr_per_map_settings(context)+ current_hashes = {k: self._pbr_settings_hash(v)+ for k, v in current_settings.items()}for map_name in map_checks:path = get_file_path(@@ -1785,11 +1918,17 @@ class ComfyUIGenerate(bpy.types.Operator):camera_id=camera_id, material_id=self._material_id)if os.path.exists(path):- existing[map_name] = path+ # Check if settings have changed since last generation+ if (stored_hashes is not None+ and stored_hashes.get(map_name) == current_hashes.get(map_name)):+ existing[map_name] = path+ else:+ # File exists but settings changed → stale, regenerate+ missing.add(map_name)else:- return None # At least one required map is missing+ missing.add(map_name)- return existing+ return existing, missing# ── Tiled PBR processing ──────────────────────────────────────────@@ -2121,16 +2260,18 @@ class ComfyUIGenerate(bpy.types.Operator):print(f" Warning: saturation computation failed: {err}")return 0.0- def _compute_avg_auto_saturation(self, context):- """Compute the average auto-saturation ratio across ALL cameras.+ def _compute_uniform_saturation(self, context, use_median=True):+ """Compute a uniform auto-saturation ratio across ALL cameras.Compares each camera's original rendered image against its raw- PBR albedo, computes per-camera ratios, then averages them.- This ensures uniform albedo saturation regardless of per-camera- lighting differences.+ PBR albedo, computes per-camera ratios, then aggregates them+ using the **median** (robust to outlier cameras) or arithmetic+ **mean**, depending on *use_median*.Returns a float multiplier (1.0 = no correction needed)."""+ import statistics+ratios = []num_cameras = len(self._cameras) if hasattr(self, '_cameras') else 0@@ -2159,10 +2300,16 @@ class ComfyUIGenerate(bpy.types.Operator):if not ratios:return 1.0- avg = sum(ratios) / len(ratios)+ if use_median:+ agg = statistics.median(ratios)+ label = "median"+ else:+ agg = sum(ratios) / len(ratios)+ label = "mean"+print(f"[StableGen] Auto saturation: per-camera ratios = "- f"{[f'{r:.2f}' for r in ratios]}, average = {avg:.2f}")- return avg+ f"{[f'{r:.2f}' for r in ratios]}, {label} = {agg:.2f}")+ return aggdef _apply_albedo_postprocessing_batch(self, context):"""Apply auto-saturation correction to all camera albedos.@@ -2181,14 +2328,15 @@ class ComfyUIGenerate(bpy.types.Operator):self._restore_raw_albedos(context)return- per_camera = getattr(context.scene, 'pbr_albedo_per_camera_saturation', False)+ sat_mode = getattr(context.scene, 'pbr_albedo_saturation_mode', 'MEDIAN')- if per_camera:+ if sat_mode == 'PER_CAMERA':# Per-camera mode: individual ratio per cameraself._apply_per_camera_saturation(context)else:- # Uniform mode: averaged ratio across all cameras- effective_sat = self._compute_avg_auto_saturation(context)+ # Uniform mode (MEDIAN or MEAN)+ effective_sat = self._compute_uniform_saturation(+ context, use_median=(sat_mode == 'MEDIAN'))if effective_sat == 1.0:print("[StableGen] Albedo saturation correction: no-op (ratio ≈ 1.0)")@@ -2318,7 +2466,8 @@ class ComfyUIGenerate(bpy.types.Operator):except Exception as err:print(f" Warning: could not create raw albedo copy: {err}")- def _run_pbr_decomposition_batched(self, context, camera_images):+ def _run_pbr_decomposition_batched(self, context, camera_images,+ per_camera_missing=None):"""Run PBR decomposition **model-first** across all cameras.Instead of iterating cameras → models (which forces repeated model@@ -2329,14 +2478,29 @@ class ComfyUIGenerate(bpy.types.Operator):context: Blender context.camera_images: ``{cam_idx: image_path}`` for cameras that needprocessing.+ per_camera_missing: Optional ``{cam_idx: set_of_missing_map_names}``.+ When provided (reproject mode), only the models needed to+ produce the missing maps are executed, and cameras that+ already have a model's outputs are skipped."""scene = context.sceneself._stage = "PBR Decomposition"self._progress = 0num_cams = len(camera_images)cam_ids = sorted(camera_images.keys())- print(f"[StableGen] Running batched PBR decomposition on "- f"{num_cams} camera(s)…")++ # When per_camera_missing is provided, compute the union of all+ # missing maps to determine which models we actually need.+ if per_camera_missing:+ all_missing = set()+ for missing_set in per_camera_missing.values():+ all_missing |= missing_set+ print(f"[StableGen] Running selective PBR decomposition on "+ f"{num_cams} camera(s), missing maps: {all_missing}")+ else:+ all_missing = None+ print(f"[StableGen] Running batched PBR decomposition on "+ f"{num_cams} camera(s)…")# Free VRAM before loading PBR models — the previous generation# model may still be cached, and Marigold/StableDelight need@@ -2362,6 +2526,8 @@ class ComfyUIGenerate(bpy.types.Operator):use_lighting_albedo = (want_albedo and albedo_source == 'lighting')# ── Determine which Marigold models to run ────────────────────+ # When all_missing is set (selective rerun), only models whose+ # outputs intersect with the missing set are scheduled.need_appearance = ((want_albedo and albedo_source == 'marigold')or want_roughness@@ -2375,6 +2541,16 @@ class ComfyUIGenerate(bpy.types.Operator):or use_lighting_albedo)+ if all_missing is not None:+ # Selective mode: narrow down to only models producing missing maps+ need_appearance = need_appearance and bool(+ all_missing & {'albedo', 'roughness', 'metallic'})+ need_normals = need_normals and 'normal' in all_missing+ need_height = need_height and 'height' in all_missing+ need_iid_lighting = need_iid_lighting and bool(+ all_missing & {'emission', 'albedo'})+ use_delight = use_delight and 'albedo' in all_missing+models_to_run = []if need_appearance:models_to_run.append((@@ -2481,6 +2657,21 @@ class ComfyUIGenerate(bpy.types.Operator):model_step = 0+ # Helper: map model short names to the final PBR map names they+ # produce, used for per-camera skipping in selective mode.+ _MODEL_OUTPUT_MAPS = {+ 'appearance': {'albedo', 'roughness', 'metallic'},+ 'normals': {'normal'},+ 'depth': {'height'},+ 'lighting': {'emission', 'albedo'}, # residual → emission, lighting → albedo+ }++ def _camera_needs_model(cam_idx, model_key):+ """Return True if this camera still needs outputs from *model_key*."""+ if per_camera_missing is None or cam_idx not in per_camera_missing:+ return True # full run, always needed+ return bool(per_camera_missing[cam_idx] & _MODEL_OUTPUT_MAPS.get(model_key, set()))+# ── StableDelight pass (all cameras) ──────────────────────────if use_delight:model_step += 1@@ -2492,6 +2683,11 @@ class ComfyUIGenerate(bpy.types.Operator):f"StableDelight{tile_label}")for ci, cam_idx in enumerate(cam_ids):+ # Skip camera if albedo already exists in selective mode+ if per_camera_missing and cam_idx in per_camera_missing:+ if 'albedo' not in per_camera_missing[cam_idx]:+ print(f" Camera {cam_idx}: albedo exists, skipping StableDelight")+ continueimage_path = camera_images[cam_idx]self._pbr_cam = ciself._stage = (f"PBR: StableDelight "@@ -2512,7 +2708,8 @@ class ComfyUIGenerate(bpy.types.Operator):if isinstance(result, dict) and "error" in result:print(f" StableDelight error: {result['error']}")- self._warning = f"StableDelight failed: {result['error']}"+ self._error = f"StableDelight failed: {result['error']}"+ returnelif isinstance(result, bytes):pbr_path = get_file_path(context, "pbr", subtype="albedo",@@ -2542,6 +2739,15 @@ class ComfyUIGenerate(bpy.types.Operator):f"{model_name}{tile_label}")for ci, cam_idx in enumerate(cam_ids):+ # Selective mode: skip camera if it doesn't need this model+ model_key = ('appearance' if is_iid+ else 'lighting' if is_iid_lighting+ else 'normals' if 'normals' in model_short+ else 'depth')+ if not _camera_needs_model(cam_idx, model_key):+ print(f" Camera {cam_idx}: already has outputs for "+ f"{model_key}, skipping")+ continueimage_path = camera_images[cam_idx]self._pbr_cam = ciself._stage = (f"PBR: {model_short} "@@ -2670,9 +2876,9 @@ class ComfyUIGenerate(bpy.types.Operator):if isinstance(result, dict) and "error" in result:print(f" PBR model error: {result['error']}")- self._warning = (f"PBR decomposition failed: "+ self._error = (f"PBR decomposition failed: "f"{result['error']}")- continue+ return# ── Save each output component ────────────────────self._save_pbr_map_outputs(@@ -2693,6 +2899,9 @@ class ComfyUIGenerate(bpy.types.Operator):print(f"[StableGen] Post-processing emission (residual "f"gating) – step {model_step}/{total_model_steps}")for ci, cam_idx in enumerate(cam_ids):+ if per_camera_missing and cam_idx in per_camera_missing:+ if 'emission' not in per_camera_missing[cam_idx]:+ continueself._pbr_cam = ciself._stage = (f"PBR: Emission gating "f"(cam {ci+1}/{num_cams})")@@ -2707,6 +2916,9 @@ class ComfyUIGenerate(bpy.types.Operator):print(f"[StableGen] Emission via HSV threshold "f"– step {model_step}/{total_model_steps}")for ci, cam_idx in enumerate(cam_ids):+ if per_camera_missing and cam_idx in per_camera_missing:+ if 'emission' not in per_camera_missing[cam_idx]:+ continueself._pbr_cam = ciself._stage = (f"PBR: HSV emission "f"(cam {ci+1}/{num_cams})")@@ -3777,21 +3989,21 @@ class Trellis2Generate(bpy.types.Operator):return True # Allow cancellationaddon_prefs = context.preferences.addons[__package__].preferencesif not addon_prefs.server_address or not addon_prefs.server_online:+ cls.poll_message_set("ComfyUI server is not connected")return Falseif not os.path.exists(addon_prefs.output_dir):+ cls.poll_message_set("Output directory not set or does not exist (check addon preferences)")return Falseif bpy.app.online_access == False:+ cls.poll_message_set("Blender's online access is disabled (File → Preferences → System)")return False- # Check that an input image is specified (only required when generate_from = image)gen_from = getattr(context.scene, 'trellis2_generate_from', 'image')if gen_from == 'image' and not context.scene.trellis2_input_image:+ cls.poll_message_set("No input image selected for TRELLIS.2 generation")+ return False+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")return False- # Check no other generation is running- for window in context.window_manager.windows:- for op in window.modal_operators:- if op.bl_idname in ('OBJECT_OT_test_stable', 'OBJECT_OT_trellis2_generate',- 'OBJECT_OT_bake_textures', 'OBJECT_OT_add_cameras'):- return Falsereturn Truedef execute(self, context):@@ -4065,6 +4277,13 @@ class Trellis2Generate(bpy.types.Operator):bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)print(f"[TRELLIS2] Scaled mesh to {target_bu} BU (factor {scale_factor:.4f})")+ # --- Apply shading mode to imported meshes ---+ _shade_mode = getattr(context.scene, 'trellis2_shade_mode', 'flat')+ if _shade_mode == 'smooth':+ bpy.ops.object.shade_smooth()+ elif _shade_mode == 'auto_smooth':+ bpy.ops.object.shade_auto_smooth()+# --- Optional studio lighting for native PBR textures ---tex_mode = getattr(self, '_texture_mode', 'native')if tex_mode == 'native' and getattr(context.scene, 'trellis2_auto_lighting', False):diff --git a/stablegen/render_tools.py b/stablegen/render_tools.pyindex 96befc4..b92476f 100644--- a/stablegen/render_tools.py+++ b/stablegen/render_tools.py@@ -1276,7 +1276,14 @@ def export_visibility(context, to_export, obj=None, camera_visibility=None, prepwhile True:# Remove color ramp connected to fac, connect directly to color ramp's fac+ if not color_mix.inputs[0].links:+ breakcolor_ramp = color_mix.inputs[0].links[0].from_node+ if not color_ramp.inputs[0].links:+ # Color ramp Fac is unlinked (constant value) — remove it and+ # fall through so the rest of the chain is wired correctly.+ nodes.remove(color_ramp)+ breakfac_node = color_ramp.inputs[0].links[0].from_node# Add subtract nodesubtract = nodes.new("ShaderNodeMath")@@ -3872,20 +3879,10 @@ class AddCameras(bpy.types.Operator):@classmethoddef poll(cls, context):- # Check for any running modal operator- operator = None- for window in context.window_manager.windows:- for op in window.modal_operators:- if op.bl_idname == 'OBJECT_OT_test_stable' or op.bl_idname == 'OBJECT_OT_collect_camera_prompts' or op.bl_idname == 'OBJECT_OT_bake_textures' or op.bl_idname == 'OBJECT_OT_add_cameras':- operator = op- break- if operator:- break- if operator:+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")return False- return not any(op.bl_idname == cls.bl_idname- for w in context.window_manager.windows- for op in w.modal_operators)+ return Truedef invoke(self, context, event):return context.window_manager.invoke_props_dialog(self)@@ -3923,12 +3920,9 @@ class CloneCamera(bpy.types.Operator):@classmethoddef poll(cls, context):- for window in context.window_manager.windows:- for op in window.modal_operators:- if op.bl_idname in ('OBJECT_OT_test_stable', 'OBJECT_OT_collect_camera_prompts',- 'OBJECT_OT_bake_textures', 'OBJECT_OT_add_cameras',- 'OBJECT_OT_clone_camera'):- return False+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")+ return Falsereturn Truedef execute(self, context):@@ -4201,6 +4195,10 @@ class ApplyCameraOrderPreset(bpy.types.Operator):default='FRONT_FIRST') # type: ignore+ @classmethod+ def poll(cls, context):+ return not sg_modal_active(context)+def execute(self, context):scene = context.scene@@ -4354,18 +4352,13 @@ class CollectCameraPrompts(bpy.types.Operator):@classmethoddef poll(cls, context):- # Check for any running modal operator- operator = None- for window in context.window_manager.windows:- for op in window.modal_operators:- if op.bl_idname == 'OBJECT_OT_test_stable' or op.bl_idname == 'OBJECT_OT_add_cameras' or op.bl_idname == 'OBJECT_OT_bake_textures' or op.bl_idname == 'OBJECT_OT_collect_camera_prompts':- operator = op- break- if operator:- break- if operator:+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")return False- return any(obj.type == 'CAMERA' for obj in context.scene.objects)+ if not any(obj.type == 'CAMERA' for obj in context.scene.objects):+ cls.poll_message_set("No cameras in the scene — use 'Add Cameras' first")+ return False+ return Truedef invoke(self, context, event):# Use selected cameras if any are selected, otherwise fall back to all@@ -4449,7 +4442,10 @@ class SwitchMaterial(bpy.types.Operator):@classmethoddef poll(cls, context):- return not sg_modal_active(context)+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")+ return False+ return Truedef invoke(self, context, event):return context.window_manager.invoke_props_dialog(self)@@ -5187,28 +5183,13 @@ class BakeTextures(bpy.types.Operator):@classmethoddef poll(self, context):- """- Checks if the operator can be executed- :param context: Blender context.- :return: True if the operator can be executed, False otherwise.- """- # Check for any running modal operator- operator = None- for window in context.window_manager.windows:- for op in window.modal_operators:- if op.bl_idname == 'OBJECT_OT_test_stable' or op.bl_idname == 'OBJECT_OT_add_cameras' or op.bl_idname == 'OBJECT_OT_collect_camera_prompts' or op.bl_idname == 'OBJECT_OT_bake_textures':- operator = op- break- if operator:- break- if operator:+ if sg_modal_active(context):+ self.poll_message_set("Another operation is in progress")return False-addon_prefs = context.preferences.addons[__package__].preferencesif not os.path.exists(addon_prefs.output_dir):+ self.poll_message_set("Output directory not set or does not exist (check addon preferences)")return False-- # Check if there are any textures to bakereturn Truedef draw(self, context):@@ -5760,18 +5741,21 @@ class ExportOrbitGIF(bpy.types.Operator):@classmethoddef poll(cls, context):- # Check if imageio is availabletry:import imageio- # Optionally check for ffmpeg plugin if strict MP4 support is needed- # This basic check is usually sufficient as imageio tries to find ffmpegexcept ImportError:+ cls.poll_message_set("Python module 'imageio' not installed")return False- # Check for active object (Mesh or Empty) and active camera- return (context.active_object is not None- and context.active_object.type in {'MESH', 'EMPTY'}- and context.scene.camera is not None- and not sg_modal_active(context))+ if context.active_object is None or context.active_object.type not in {'MESH', 'EMPTY'}:+ cls.poll_message_set("Select a mesh or empty object first")+ return False+ if context.scene.camera is None:+ cls.poll_message_set("No active camera in the scene")+ return False+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")+ return False+ return Truedef invoke(self, context, event):# Check dependency again in invoke to provide feedback@@ -6633,7 +6617,13 @@ class ExportForGameEngine(bpy.types.Operator):@classmethoddef poll(cls, context):addon_prefs = context.preferences.addons[__package__].preferences- return os.path.exists(addon_prefs.output_dir) and not sg_modal_active(context)+ if not os.path.exists(addon_prefs.output_dir):+ cls.poll_message_set("Output directory not set or does not exist (check addon preferences)")+ return False+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")+ return False+ return Truedef draw(self, context):layout = self.layoutdiff --git a/stablegen/stablegen.py b/stablegen/stablegen.pyindex 6909b90..a395f19 100644--- a/stablegen/stablegen.py+++ b/stablegen/stablegen.py@@ -9,9 +9,25 @@ from .utils import sg_modal_activedef _is_refreshing():- """Return True while async model-list refreshes are in-flight."""+ """Return True while async model-list refreshes are in-flight.++ If the counter has been stuck for longer than ``_REFRESH_TIMEOUT``+ seconds (e.g. due to a lost timer), force-reset it to 0 so the UI+ is not permanently blocked.+ """+ import time as _timepkg = sys.modules.get(__package__)- return getattr(pkg, '_pending_refreshes', 0) > 0+ count = getattr(pkg, '_pending_refreshes', 0)+ if count <= 0:+ return False+ started = getattr(pkg, '_refresh_started_at', 0.0)+ if started > 0 and (_time.monotonic() - started) > getattr(pkg, '_REFRESH_TIMEOUT', 30.0):+ # Safety net: force-clear a stuck counter+ print(f"[StableGen] Refreshing model lists stuck for >{getattr(pkg, '_REFRESH_TIMEOUT', 30.0):.0f}s – resetting.")+ pkg._pending_refreshes = 0+ pkg._refresh_started_at = 0.0+ return False+ return True# Stock presetsPRESETS = {@@ -22,29 +38,29 @@ PRESETS = {"QUICK DRAFT": {"description": "Optimized for speed", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 4, "cfg": 1.0, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "grid", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.7, "sequential_factor_smooth": 0.1, "sequential_ipadapter": True, "sequential_ipadapter_mode": "first", "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 2, "blur_mask_sigma": 1.0, "grow_mask_by": 2, "canny_threshold_low": 0, "canny_threshold_high": 80, "pbr_decomposition": False, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.5, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'Hyper-SDXL-4steps-lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]},"UV INPAINTING": {"description": "Recommended UV Inpainting setup. It is recommended to bake texutures manually before running the generation to fine-tune unwrapping and avoid lag when generating.", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 10, "cfg": 1.5, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 80.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "uv_inpaint", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "3,0,1,2", "sequential_factor": 0.6000000238418579, "sequential_factor_smooth": 0.11000001430511475, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "first", "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 3, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "pbr_decomposition": False, "lora_units": [{'model_name': 'sdxl_lightning_8step_lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]}, # No ControlNet for UV Inpainting by default"ARCHITECTURE": {"description": "Prioritizes only the most straight-on camera for each point. This means details generated on flat surfaces will not get blurred by getting generated differently from two or more viewpoints. Does not use visibility masking. Each picture will get generated as new, consistency depends on IPAdapter + geometry.", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 8, "cfg": 1.5, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 80.0, "weight_exponent": 10.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "separate", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": False, "sequential_custom_camera_order": "", "sequential_factor": 0.75, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "first", "ipadapter_weight_type": "style", "ipadapter_strength": 0.800000011920929, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": False, "blur_mask": True, "blur_mask_radius": 3, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "pbr_decomposition": False, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'sdxl_lightning_8step_lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]},- "QWEN PRECISE": {"description": "Precise detail when camera overlap is good. Relies on context renders plus the prompt, so sparse coverage can still introduce artifacts.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit","qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},- "QWEN SAFE": {"description": "Safer fallback when coverage is limited. Uses the previous view (recent mode) instead of context renders to keep global look coherent, at the cost of some fine-detail persistence.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 6.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},- "QWEN ALT": {"description": "Balanced option that mixes additional context renders with sequential references to smooth out coverage while keeping detail reasonable.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "recent", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "ADDITIONAL", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "early_priority": True, "early_priority_strength": 0.5, "pbr_decomposition": False, "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},- "QWEN VORONOI": {"description": "Voronoi projection mode with exponent 1000 for hard camera segmentation during generation, then resets to 15 for softer blending. Each surface point is dominated by its closest camera. Based on Qwen Precise.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 1000.0, "weight_exponent_generation_only": True, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": True, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},- "QWEN PRECISE (NUNCHAKU)": {"description": "Precise detail using Nunchaku. Meant to be used with the Nunchaku model which has the 4-step Lightning LoRA included. Requires Nunchaku nodes.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": []},- "QWEN SAFE (NUNCHAKU)": {"description": "Safer fallback using Nunchaku. Meant to be used with the Nunchaku model which has the 4-step Lightning LoRA included. Requires Nunchaku nodes.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 6.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": []},- "QWEN ALT (NUNCHAKU)": {"description": "Balanced option using Nunchaku. Meant to be used with the Nunchaku model which has the 4-step Lightning LoRA included. Requires Nunchaku nodes.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "recent", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "ADDITIONAL", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "early_priority": True, "early_priority_strength": 0.5, "pbr_decomposition": False, "lora_units": []},- "QWEN VORONOI (NUNCHAKU)": {"description": "Voronoi projection mode using Nunchaku. Exponent 1000 for hard camera segmentation during generation, then resets to 15 for softer blending. Requires Nunchaku nodes.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 1000.0, "weight_exponent_generation_only": True, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": True, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": []},- "KLEIN PRECISE": {"description": "FLUX.2 Klein with precise detail when camera overlap is good. Uses depth reference images with CFGGuider (cfg=1). Best for well-covered geometry.", "control_after_generate": "fixed", "model_architecture": "flux2_klein", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour.", "qwen_custom_prompt_seq_none": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour, adopting the visual style from image 2.", "qwen_custom_prompt_seq_replace": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray.", "qwen_custom_prompt_seq_additional": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray. Image 3 represents the overall style.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": []},- "KLEIN SAFE": {"description": "FLUX.2 Klein safer fallback when coverage is limited. Uses the previous view instead of context renders with depth references and CFGGuider (cfg=1).", "control_after_generate": "fixed", "model_architecture": "flux2_klein", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 6.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour.", "qwen_custom_prompt_seq_none": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour, adopting the visual style from image 2.", "qwen_custom_prompt_seq_replace": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray.", "qwen_custom_prompt_seq_additional": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray. Image 3 represents the overall style.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": []},- "KLEIN ALT": {"description": "FLUX.2 Klein balanced option that mixes additional context renders with sequential references. Uses depth references and CFGGuider (cfg=1).", "control_after_generate": "fixed", "model_architecture": "flux2_klein", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "recent", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "ADDITIONAL", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour.", "qwen_custom_prompt_seq_none": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour, adopting the visual style from image 2.", "qwen_custom_prompt_seq_replace": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray.", "qwen_custom_prompt_seq_additional": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray. Image 3 represents the overall style.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "early_priority": True, "early_priority_strength": 0.5, "pbr_decomposition": False, "lora_units": []},- "KLEIN VORONOI": {"description": "FLUX.2 Klein voronoi projection mode. Exponent 1000 for hard camera segmentation during generation, then resets to 15 for softer blending. Uses depth references and CFGGuider (cfg=1).", "control_after_generate": "fixed", "model_architecture": "flux2_klein", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 1000.0, "weight_exponent_generation_only": True, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": True, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour.", "qwen_custom_prompt_seq_none": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour, adopting the visual style from image 2.", "qwen_custom_prompt_seq_replace": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray.", "qwen_custom_prompt_seq_additional": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray. Image 3 represents the overall style.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": []},- "LOCAL REFINE": {"description": "Uses the SDXL local edit mode to improve detail / refine specific areas. Use new set of cameras or a single camera pointed at the area you want to refine.", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 8, "cfg": 1.5, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 80.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "local_edit", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.10000000149011612, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "original_render", "sequential_desaturate_factor": 0.10000000149011612, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": True, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 5.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05, "visibility_vignette": True, "visibility_vignette_width": 0.3, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "pbr_decomposition": False, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.5, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'sdxl_lightning_8step_lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]},- "LOCAL EDIT (QWEN)": {"description": "Uses Qwen to make targeted edits to specific areas. Point cameras at what you want to change — you can alter colors, style, rewrite text, add details, and more. Untouched areas are preserved.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "local_edit", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 1.0, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": False, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": False, "refine_angle_ramp_active": False, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05, "visibility_vignette": True, "visibility_vignette_width": 0.1, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6, "refine_edge_feather_projection": True, "refine_edge_feather_width": 15, "refine_edge_feather_softness": 1.0, "pbr_decomposition": False, "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},- "REFINE (QWEN)": {"description": "Uses Qwen to restyle or globally modify the entire existing texture. Applies changes uniformly across all camera views — ideal for changing the overall color scheme, art style, or surface appearance.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "refine", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 1.0, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": False, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": False, "pbr_decomposition": False, "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},- "DEFAULT (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and SDXL to generate a textured mesh. Optimized for general object generation. May not work ideally for the cases which have their specialized presets.", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 8, "cfg": 1.5, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 75.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 85.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.10000000149011612, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "trellis2_input", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 3, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 5.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "sdxl", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 10, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": False, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_fill_holes": True, "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": False, "trellis2_max_elevation": 1.2216999530792236, "trellis2_min_elevation": -1.0471975803375244, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": False, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'sdxl_lightning_8step_lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]},- "TRELLIS.2 (MESH ONLY)": {"description": "Uses TRELLIS.2 to generate a mesh without texturing. Useful when you only need geometry or plan to texture manually.", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 8, "cfg": 1.5, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 75.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 85.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.10000000149011612, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "trellis2_input", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 3, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 5.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "none", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 10, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": False, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_fill_holes": True, "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": False, "trellis2_max_elevation": 1.2216999530792236, "trellis2_min_elevation": -1.0471975803375244, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": False, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'sdxl_lightning_8step_lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]},- "CHARACTERS (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and SDXL to generate a textured mesh. Optimized settings for generating characters. Will not texture bottom facing faces.", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 8, "cfg": 1.5, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 75.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 85.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.10000000149011612, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "trellis2_input", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 5.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "sdxl", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 8, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": True, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_fill_holes": True, "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": True, "trellis2_max_elevation": 0.8726646259971648, "trellis2_min_elevation": -0.8726646259971648, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": False, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'sdxl_lightning_8step_lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]},- "ARCHITECTURE (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and SDXL to generate a textured mesh. Optimized settings for architecture, and other models with flat walls and sharp angles.", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 8, "cfg": 1.5, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 80.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 85.0, "weight_exponent": 10.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "separate", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": False, "sequential_custom_camera_order": "", "sequential_factor": 0.75, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "trellis2_input", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 0.800000011920929, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": False, "blur_mask": True, "blur_mask_radius": 3, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 5.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "sdxl", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 8, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": True, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_fill_holes": True, "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": False, "trellis2_max_elevation": 1.2216999530792236, "trellis2_min_elevation": -1.0471975803375244, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": False, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'sdxl_lightning_8step_lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]},- "QWEN PRECISE (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and Qwen Image Edit to generate a textured mesh. Precise detail when camera overlap is good. Relies on context renders plus the prompt.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "sg_silhouette_margin": 3, "sg_silhouette_depth": 0.05000000074505806, "sg_silhouette_rays": "4", "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "qwen_image_edit", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 8, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": True, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_seed": 0, "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_fill_holes": True, "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": True, "trellis2_max_elevation": 0.8726646259971648, "trellis2_min_elevation": -0.8726646259971648, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": True, "qwen_trellis2_style_initial_only": True, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},- "QWEN SAFE (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and Qwen Image Edit to generate a textured mesh. Safer fallback when coverage is limited. Uses TRELLIS.2 input image as sequential style reference for global coherence.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 6.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "sg_silhouette_margin": 3, "sg_silhouette_depth": 0.05000000074505806, "sg_silhouette_rays": "4", "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "qwen_image_edit", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 8, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": True, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_seed": 0, "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_fill_holes": True, "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": True, "trellis2_max_elevation": 0.8726646259971648, "trellis2_min_elevation": -0.8726646259971648, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": True, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},- "QWEN ALT (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and Qwen Image Edit to generate a textured mesh. Uses ADDITIONAL context renders with TRELLIS.2 style transfer for consistency. Good general-purpose Qwen pipeline.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": True, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "ADDITIONAL", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "sg_silhouette_margin": 3, "sg_silhouette_depth": 0.05000000074505806, "sg_silhouette_rays": "4", "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "qwen_image_edit", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 8, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": True, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_seed": 0, "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_fill_holes": True, "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": True, "trellis2_max_elevation": 0.8726646259971648, "trellis2_min_elevation": -0.8726646259971648, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": True, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},- "QWEN VORONOI (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and Qwen Image Edit to generate a textured mesh. Voronoi projection with exponent 1000 for hard camera segmentation during generation, then resets to 15 for softer blending.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 1000.0, "weight_exponent_generation_only": True, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": True, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "sg_silhouette_margin": 3, "sg_silhouette_depth": 0.05000000074505806, "sg_silhouette_rays": "4", "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "qwen_image_edit", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 8, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": True, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_seed": 0, "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_fill_holes": True, "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": True, "trellis2_max_elevation": 0.8726646259971648, "trellis2_min_elevation": -0.8726646259971648, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": True, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},+ "QWEN PRECISE": {"description": "Precise detail when camera overlap is good. Relies on context renders plus the prompt, so sparse coverage can still introduce artifacts.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit","qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},+ "QWEN SAFE": {"description": "Safer fallback when coverage is limited. Uses the previous view (recent mode) instead of context renders to keep global look coherent, at the cost of some fine-detail persistence.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 6.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},+ "QWEN ALT": {"description": "Balanced option that mixes additional context renders with sequential references to smooth out coverage while keeping detail reasonable.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "recent", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "ADDITIONAL", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "early_priority": True, "early_priority_strength": 0.5, "pbr_decomposition": False, "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},+ "QWEN VORONOI": {"description": "Voronoi projection mode with exponent 1000 for hard camera segmentation during generation, then resets to 15 for softer blending. Each surface point is dominated by its closest camera. Based on Qwen Precise.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 1000.0, "weight_exponent_generation_only": True, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": True, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},+ "QWEN PRECISE (NUNCHAKU)": {"description": "Precise detail using Nunchaku. Meant to be used with the Nunchaku model which has the 4-step Lightning LoRA included. Requires Nunchaku nodes.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": []},+ "QWEN SAFE (NUNCHAKU)": {"description": "Safer fallback using Nunchaku. Meant to be used with the Nunchaku model which has the 4-step Lightning LoRA included. Requires Nunchaku nodes.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 6.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": []},+ "QWEN ALT (NUNCHAKU)": {"description": "Balanced option using Nunchaku. Meant to be used with the Nunchaku model which has the 4-step Lightning LoRA included. Requires Nunchaku nodes.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "recent", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "ADDITIONAL", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "early_priority": True, "early_priority_strength": 0.5, "pbr_decomposition": False, "lora_units": []},+ "QWEN VORONOI (NUNCHAKU)": {"description": "Voronoi projection mode using Nunchaku. Exponent 1000 for hard camera segmentation during generation, then resets to 15 for softer blending. Requires Nunchaku nodes.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 1000.0, "weight_exponent_generation_only": True, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": True, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": []},+ "KLEIN PRECISE": {"description": "FLUX.2 Klein with precise detail when camera overlap is good. Uses depth reference images with CFGGuider (cfg=1). Best for well-covered geometry.", "control_after_generate": "fixed", "model_architecture": "flux2_klein", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour.", "qwen_custom_prompt_seq_none": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour, adopting the visual style from image 2.", "qwen_custom_prompt_seq_replace": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray.", "qwen_custom_prompt_seq_additional": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray. Image 3 represents the overall style.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": []},+ "KLEIN SAFE": {"description": "FLUX.2 Klein safer fallback when coverage is limited. Uses the previous view instead of context renders with depth references and CFGGuider (cfg=1).", "control_after_generate": "fixed", "model_architecture": "flux2_klein", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 6.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour.", "qwen_custom_prompt_seq_none": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour, adopting the visual style from image 2.", "qwen_custom_prompt_seq_replace": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray.", "qwen_custom_prompt_seq_additional": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray. Image 3 represents the overall style.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": []},+ "KLEIN ALT": {"description": "FLUX.2 Klein balanced option that mixes additional context renders with sequential references. Uses depth references and CFGGuider (cfg=1).", "control_after_generate": "fixed", "model_architecture": "flux2_klein", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": False, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "recent", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "ADDITIONAL", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour.", "qwen_custom_prompt_seq_none": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour, adopting the visual style from image 2.", "qwen_custom_prompt_seq_replace": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray.", "qwen_custom_prompt_seq_additional": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray. Image 3 represents the overall style.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "early_priority": True, "early_priority_strength": 0.5, "pbr_decomposition": False, "lora_units": []},+ "KLEIN VORONOI": {"description": "FLUX.2 Klein voronoi projection mode. Exponent 1000 for hard camera segmentation during generation, then resets to 15 for softer blending. Uses depth references and CFGGuider (cfg=1).", "control_after_generate": "fixed", "model_architecture": "flux2_klein", "qwen_generation_method": "generate", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 1000.0, "weight_exponent_generation_only": True, "weight_exponent_after_generation": 15.0, "qwen_voronoi_mode": True, "clip_skip": 1, "auto_rescale": True, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.8, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour.", "qwen_custom_prompt_seq_none": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour, adopting the visual style from image 2.", "qwen_custom_prompt_seq_replace": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray.", "qwen_custom_prompt_seq_additional": "Reskin this into {main_prompt}{camera_suffix}, while preserve identity keep likeness replica contour. In image 2, replace all solid magenta areas with content that continues the surrounding style. Replace the background with solid gray. Image 3 represents the overall style.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "pbr_decomposition": False, "lora_units": []},+ "LOCAL REFINE": {"description": "Uses the SDXL local edit mode to improve detail / refine specific areas. Use new set of cameras or a single camera pointed at the area you want to refine.", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 8, "cfg": 1.5, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 80.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "local_edit", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.10000000149011612, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "original_render", "sequential_desaturate_factor": 0.10000000149011612, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": True, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 5.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05, "visibility_vignette": True, "visibility_vignette_width": 0.3, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "pbr_decomposition": False, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.5, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'sdxl_lightning_8step_lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]},+ "LOCAL EDIT (QWEN)": {"description": "Uses Qwen to make targeted edits to specific areas. Point cameras at what you want to change — you can alter colors, style, rewrite text, add details, and more. Untouched areas are preserved.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "local_edit", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 1.0, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": False, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": False, "refine_angle_ramp_active": False, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05, "visibility_vignette": True, "visibility_vignette_width": 0.1, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6, "refine_edge_feather_projection": True, "refine_edge_feather_width": 15, "refine_edge_feather_softness": 1.0, "pbr_decomposition": False, "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},+ "REFINE (QWEN)": {"description": "Uses Qwen to restyle or globally modify the entire existing texture. Applies changes uniformly across all camera views — ideal for changing the overall color scheme, art style, or surface appearance.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "qwen_generation_method": "refine", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 1.0, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": False, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": False, "pbr_decomposition": False, "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},+ "DEFAULT (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and SDXL to generate a textured mesh. Optimized for general object generation. May not work ideally for the cases which have their specialized presets.", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 8, "cfg": 1.5, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 75.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 85.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.10000000149011612, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "trellis2_input", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 3, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 5.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "sdxl", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 10, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": False, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": False, "trellis2_max_elevation": 1.2216999530792236, "trellis2_min_elevation": -1.0471975803375244, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": False, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'sdxl_lightning_8step_lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]},+ "TRELLIS.2 (MESH ONLY)": {"description": "Uses TRELLIS.2 to generate a mesh without texturing. Useful when you only need geometry or plan to texture manually.", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 8, "cfg": 1.5, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 75.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 85.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.10000000149011612, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "trellis2_input", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 3, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 5.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "none", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 10, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": False, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": False, "trellis2_max_elevation": 1.2216999530792236, "trellis2_min_elevation": -1.0471975803375244, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": False, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'sdxl_lightning_8step_lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]},+ "CHARACTERS (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and SDXL to generate a textured mesh. Optimized settings for generating characters. Will not texture bottom facing faces.", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 8, "cfg": 1.5, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 75.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 85.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.10000000149011612, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "trellis2_input", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 5.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "sdxl", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 8, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": True, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": True, "trellis2_max_elevation": 0.8726646259971648, "trellis2_min_elevation": -0.8726646259971648, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": False, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'sdxl_lightning_8step_lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]},+ "ARCHITECTURE (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and SDXL to generate a textured mesh. Optimized settings for architecture, and other models with flat walls and sharp angles.", "control_after_generate": "fixed", "model_architecture": "sdxl", "steps": 8, "cfg": 1.5, "sampler": "dpmpp_2s_ancestral", "scheduler": "sgm_uniform", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 80.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 85.0, "weight_exponent": 10.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "separate", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": False, "sequential_custom_camera_order": "", "sequential_factor": 0.75, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": True, "sequential_ipadapter_mode": "trellis2_input", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 0.800000011920929, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": False, "blur_mask": True, "blur_mask_radius": 3, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 5.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "sdxl", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 8, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": True, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": False, "trellis2_max_elevation": 1.2216999530792236, "trellis2_min_elevation": -1.0471975803375244, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": False, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'sdxl_lightning_8step_lora.safetensors', 'model_strength': 1.0, 'clip_strength': 1.0}]},+ "QWEN PRECISE (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and Qwen Image Edit to generate a textured mesh. Precise detail when camera overlap is good. Relies on context renders plus the prompt.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "sg_silhouette_margin": 3, "sg_silhouette_depth": 0.05000000074505806, "sg_silhouette_rays": "4", "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "qwen_image_edit", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 8, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": True, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_seed": 0, "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": True, "trellis2_max_elevation": 0.8726646259971648, "trellis2_min_elevation": -0.8726646259971648, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": True, "qwen_trellis2_style_initial_only": True, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},+ "QWEN SAFE (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and Qwen Image Edit to generate a textured mesh. Safer fallback when coverage is limited. Uses TRELLIS.2 input image as sequential style reference for global coherence.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 6.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "NONE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "sg_silhouette_margin": 3, "sg_silhouette_depth": 0.05000000074505806, "sg_silhouette_rays": "4", "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "qwen_image_edit", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 8, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": True, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_seed": 0, "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": True, "trellis2_max_elevation": 0.8726646259971648, "trellis2_min_elevation": -0.8726646259971648, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": True, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},+ "QWEN ALT (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and Qwen Image Edit to generate a textured mesh. Uses ADDITIONAL context renders with TRELLIS.2 style transfer for consistency. Good general-purpose Qwen pipeline.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 3.0, "weight_exponent_generation_only": False, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.10000000149011612, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": True, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": False, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "ADDITIONAL", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "sg_silhouette_margin": 3, "sg_silhouette_depth": 0.05000000074505806, "sg_silhouette_rays": "4", "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "qwen_image_edit", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 8, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": True, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_seed": 0, "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": True, "trellis2_max_elevation": 0.8726646259971648, "trellis2_min_elevation": -0.8726646259971648, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": True, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},+ "QWEN VORONOI (MESH + TEXTURE)": {"description": "Uses TRELLIS.2 and Qwen Image Edit to generate a textured mesh. Voronoi projection with exponent 1000 for hard camera segmentation during generation, then resets to 15 for softer blending.", "control_after_generate": "fixed", "model_architecture": "qwen_image_edit", "steps": 4, "cfg": 1.0, "sampler": "euler", "scheduler": "simple", "fallback_color": mathutils.Color((0.0, 0.0, 0.0)), "discard_factor": 70.0, "discard_factor_generation_only": True, "discard_factor_after_generation": 90.0, "weight_exponent": 1000.0, "weight_exponent_generation_only": True, "weight_exponent_after_generation": 15.0, "view_blend_use_color_match": False, "view_blend_color_match_method": "reinhard", "view_blend_color_match_strength": 1.0, "clip_skip": 1, "auto_rescale": True, "auto_rescale_target_mp": 1.0, "overwrite_material": True, "generation_method": "sequential", "refine_images": False, "refine_steps": 8, "refine_sampler": "dpmpp_2s_ancestral", "refine_scheduler": "sgm_uniform", "denoise": 0.800000011920929, "refine_cfg": 1.5, "refine_prompt": "", "refine_upscale_method": "lanczos", "sequential_smooth": True, "sequential_custom_camera_order": "", "sequential_factor": 0.699999988079071, "sequential_factor_smooth": 0.15000000596046448, "sequential_factor_smooth_2": 1.0, "sequential_ipadapter": False, "sequential_ipadapter_mode": "first", "sequential_desaturate_factor": 0.0, "sequential_contrast_factor": 0.0, "sequential_ipadapter_regenerate": False, "ipadapter_weight_type": "style", "ipadapter_strength": 1.0, "ipadapter_start": 0.0, "ipadapter_end": 1.0, "early_priority": False, "early_priority_strength": 0.5, "differential_diffusion": True, "differential_noise": True, "blur_mask": True, "blur_mask_radius": 1, "blur_mask_sigma": 1.0, "grow_mask_by": 3, "canny_threshold_low": 0, "canny_threshold_high": 80, "qwen_guidance_map_type": "depth", "qwen_voronoi_mode": True, "qwen_use_external_style_image": False, "qwen_external_style_image": "", "qwen_context_render_mode": "REPLACE_STYLE", "qwen_external_style_initial_only": False, "qwen_use_custom_prompts": False, "qwen_custom_prompt_initial": "Change the format of image 1 to '{main_prompt}'", "qwen_custom_prompt_seq_none": "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2", "qwen_custom_prompt_seq_replace": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas.", "qwen_custom_prompt_seq_additional": "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object.", "qwen_guidance_fallback_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_guidance_background_color": mathutils.Color((1.0, 0.0, 1.0)), "qwen_context_cleanup": False, "qwen_context_cleanup_hue_tolerance": 0.0, "qwen_context_cleanup_value_adjust": 0.0, "qwen_context_fallback_dilation": 1, "qwen_prompt_gray_background": True, "qwen_rescale_alignment": True, "qwen_generation_method": "generate", "qwen_refine_use_prev_ref": False, "qwen_refine_use_depth": False, "qwen_timestep_zero_ref": False, "refine_angle_ramp_active": True, "refine_angle_ramp_pos_0": 0.0, "refine_angle_ramp_pos_1": 0.05000000074505806, "visibility_vignette": True, "visibility_vignette_width": 0.15000000596046448, "visibility_vignette_softness": 1.0, "visibility_vignette_blur": False, "sg_silhouette_margin": 3, "sg_silhouette_depth": 0.05000000074505806, "sg_silhouette_rays": "4", "refine_feather_ramp_pos_0": 0.0, "refine_feather_ramp_pos_1": 0.6000000238418579, "refine_edge_feather_projection": True, "refine_edge_feather_width": 30, "refine_edge_feather_softness": 1.0, "trellis2_texture_mode": "qwen_image_edit", "trellis2_initial_image_arch": "sdxl", "trellis2_camera_count": 8, "trellis2_placement_mode": "normal_weighted", "trellis2_auto_prompts": True, "trellis2_exclude_bottom": True, "trellis2_exclude_bottom_angle": 1.5533000230789185, "trellis2_auto_aspect": "per_camera", "trellis2_occlusion_mode": "none", "trellis2_consider_existing": False, "trellis2_delete_cameras": False, "trellis2_coverage_target": 0.949999988079071, "trellis2_max_auto_cameras": 12, "trellis2_fan_angle": 90.0, "trellis2_resolution": "1024_cascade", "trellis2_vram_mode": "disk_offload", "trellis2_attn_backend": "flash_attn", "trellis2_seed": 0, "trellis2_ss_guidance": 7.5, "trellis2_ss_steps": 12, "trellis2_shape_guidance": 7.5, "trellis2_shape_steps": 12, "trellis2_tex_guidance": 7.5, "trellis2_tex_steps": 12, "trellis2_max_tokens": 32768, "trellis2_texture_size": 4096, "trellis2_decimation": 1000000, "trellis2_remesh": True, "trellis2_post_processing_enabled": True, "trellis2_bg_removal": "auto", "trellis2_background_color": "black", "trellis2_import_scale": 2.0, "trellis2_clamp_elevation": True, "trellis2_max_elevation": 0.8726646259971648, "trellis2_min_elevation": -0.8726646259971648, "trellis2_auto_lighting": True, "use_ipadapter": False, "sequential_ipadapter_regenerate_wo_controlnet": False, "allow_modify_existing_textures": False, "ask_object_prompts": True, "weight_exponent_mask": False, "mask_blocky": False, "architecture_mode": "trellis2", "use_camera_prompts": True, "sg_use_custom_camera_order": False, "pbr_decomposition": False, "generation_mode": "standard", "texture_objects": "all", "use_flux_lora": True, "qwen_use_trellis2_style": True, "qwen_trellis2_style_initial_only": False, "trellis2_skip_texture": True, "controlnet_units": [{'unit_type': 'depth', 'model_name': 'controlnet_depth_sdxl.safetensors', 'strength': 0.6000000238418579, 'start_percent': 0.0, 'end_percent': 1.0, 'is_union': False, 'use_union_type': True}], "lora_units": [{'model_name': 'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors', 'model_strength': 1.0, 'clip_strength': 0.0}]},}# Global list of all generation parameter names to check for a preset.@@ -119,6 +135,7 @@ GEN_PARAMETERS = ["qwen_context_cleanup_hue_tolerance","qwen_context_cleanup_value_adjust","qwen_context_fallback_dilation",+ "qwen_prompt_gray_background","qwen_rescale_alignment","qwen_generation_method","qwen_refine_use_prev_ref",@@ -172,7 +189,6 @@ GEN_PARAMETERS = ["trellis2_bg_removal","trellis2_background_color",- "trellis2_fill_holes","trellis2_import_scale","trellis2_clamp_elevation","trellis2_max_elevation",@@ -196,14 +212,122 @@ GEN_PARAMETERS = ["qwen_trellis2_style_initial_only","trellis2_skip_texture","pbr_decomposition",+ "pbr_albedo_saturation_mode",+]++# ── Preset diff preview helpers ──────────────────────────────────────────++# Parameters shown first in the diff preview (most user-visible settings).+_PRESET_DIFF_CORE = [+ 'architecture_mode', 'model_architecture', 'steps', 'cfg',+ 'sampler', 'scheduler', 'generation_method', 'denoise',+ 'generation_mode', 'pbr_decomposition',]+# Known enum values that need specific casing in diff labels.+_DISPLAY_NAMES = {+ 'sdxl': 'SDXL',+ 'flux1': 'FLUX.1',+ 'qwen_image_edit': 'Qwen',+ 'flux2_klein': 'FLUX.2 Klein',+ 'trellis2': 'TRELLIS.2',+ 'standard': 'Standard',+}++def _fmt_diff_val(v):+ """Format a property value for compact display in the diff preview."""+ if isinstance(v, bool):+ return 'On' if v else 'Off'+ if isinstance(v, float):+ # Strip trailing zeros: 1.50 → "1.5", 8.00 → "8"+ return f'{v:.2f}'.rstrip('0').rstrip('.')+ if isinstance(v, str):+ if v in _DISPLAY_NAMES:+ return _DISPLAY_NAMES[v]+ s = v.replace('_', ' ').title()+ return s[:20] + '…' if len(s) > 22 else s+ return str(v)+++def _preset_diff(context):+ """Return list of (param, current_formatted, preset_formatted) for+ parameters that differ between the scene and the selected preset.+ Core parameters are listed first."""+ scene = context.scene+ preset_key = scene.stablegen_preset+ if preset_key not in PRESETS:+ return []+ preset = PRESETS[preset_key]+ core_diffs = []+ other_diffs = []+ core_set = set(_PRESET_DIFF_CORE)+ for key in GEN_PARAMETERS:+ if key not in preset or not hasattr(scene, key):+ continue+ current = getattr(scene, key)+ target = preset[key]+ try:+ if isinstance(current, (int, float)) and isinstance(target, (int, float)):+ if math.isclose(float(current), float(target), rel_tol=1e-7, abs_tol=0.0):+ continue+ elif current == target:+ continue+ except Exception:+ continue+ entry = (key, _fmt_diff_val(current), _fmt_diff_val(target))+ if key in core_set:+ core_diffs.append(entry)+ else:+ other_diffs.append(entry)+ # Sort core diffs in the defined display order+ core_order = {k: i for i, k in enumerate(_PRESET_DIFF_CORE)}+ core_diffs.sort(key=lambda x: core_order.get(x[0], 999))+ return core_diffs + other_diffs++def get_preset_items(self, context):+ # Group presets by architecture for easier navigation.+ _ARCH_GROUP_ORDER = [+ ('sdxl', 'SDXL / FLUX.1'),+ ('qwen_image_edit', 'Qwen Image Edit'),+ ('flux2_klein', 'FLUX.2 Klein'),+ ('trellis2', 'TRELLIS.2 Pipeline'),+ ]+ _known_groups = {k for k, _ in _ARCH_GROUP_ORDER}++ # Classify each preset into its architecture group.+ groups = {} # group_key -> list of (identifier, name, description)+ for key, preset in PRESETS.items():+ if preset.get('architecture_mode') == 'trellis2':+ grp = 'trellis2'+ else:+ grp = preset.get('model_architecture', 'sdxl')+ groups.setdefault(grp, []).append(+ (key, key.title(), preset.get('description', f'Preset {key}'))+ )+items = []- for key in PRESETS.keys():- description = PRESETS[key].get("description", f"Preset {key}")- items.append((key, key.title(), description))- items.append(("CUSTOM", "Custom", "Custom configuration"))+ first_group = True+ for grp_key, _label in _ARCH_GROUP_ORDER:+ if grp_key not in groups:+ continue+ if not first_group:+ items.append(('', '', '')) # horizontal separator+ # Section header: empty identifier + label name renders as header+ # in Blender 4.x enum popup menus.+ items.append(('', _label, ''))+ first_group = False+ items.extend(groups[grp_key])++ # Any architectures not explicitly listed above (future-proofing).+ for grp_key, grp_items in groups.items():+ if grp_key not in _known_groups:+ items.append(('', '', ''))+ items.append(('', grp_key.replace('_', ' ').title(), ''))+ items.extend(grp_items)++ items.append(('', '', '')) # separator before Custom+ items.append(('CUSTOM', 'Custom', 'Custom configuration'))return itemsdef update_parameters(self, context):@@ -326,7 +450,16 @@ class StableGenPanel(bpy.types.Panel):region = context.regionwidth = region.widthwidth_mode = 'narrow' if width < 420 else 'wide'-++ # Compute properties that differ from the pending (unapplied) preset.+ # Used to highlight affected fields inline with alert coloring.+ # Dict maps param name → formatted target value for "→ X" labels.+ _diff_props = {}+ if (hasattr(scene, 'active_preset')+ and scene.stablegen_preset != 'CUSTOM'+ and getattr(scene, 'active_preset', '') != scene.stablegen_preset):+ _diff_props = {d[0]: d[2] for d in _preset_diff(context)}+# --- Action Buttons & Progress ---cam_tools_row = layout.row()cam_tools_row.operator("object.add_cameras", text="Add Cameras", icon="CAMERA_DATA")@@ -354,6 +487,24 @@ class StableGenPanel(bpy.types.Panel):_arch_mode = getattr(scene, 'architecture_mode', 'sdxl')_is_trellis2_mode = (_arch_mode == 'trellis2')+ # ── Prerequisite warnings (shown inline before the Generate button) ──+ if not _is_trellis2_mode and not config_error_message:+ has_cameras = any(obj.type == 'CAMERA' for obj in scene.objects)+ has_meshes = any(obj.type == 'MESH' for obj in context.view_layer.objects if not obj.hide_get())+ if not has_meshes:+ warn_box = layout.box()+ warn_row = warn_box.row()+ warn_row.alert = True+ warn_row.label(text="No visible mesh objects", icon='ERROR')+ warn_row.operator("stablegen.switch_to_mesh_generation",+ text="Mesh Generation", icon='MESH_DATA')+ if not has_cameras:+ warn_box = layout.box()+ warn_row = warn_box.row()+ warn_row.alert = True+ warn_row.label(text="No cameras in the scene", icon='ERROR')+ warn_row.operator("object.add_cameras", text="Add Cameras", icon='CAMERA_DATA')+action_row = layout.row()action_row.scale_y = 2.0 # Scale the row vertically@@ -697,8 +848,10 @@ class StableGenPanel(bpy.types.Panel):btn_row = queue_content.row(align=True)btn_row.operator("stablegen.queue_add", text="Add Scene", icon="ADD")- btn_row.operator("stablegen.queue_clear", text="Clear", icon="TRASH")- btn_row.operator("stablegen.queue_open_result", text="Open Result", icon="FILE_BLEND")+ btn_row.operator("stablegen.queue_open_result", text="Open", icon="FILE_BLEND")+ btn_row2 = queue_content.row(align=True)+ btn_row2.operator("stablegen.queue_invalidate", text="Reset", icon="LOOP_BACK")+ btn_row2.operator("stablegen.queue_clear", text="Clear", icon="TRASH")process_row = queue_content.row()if _queue_processing:@@ -752,18 +905,39 @@ class StableGenPanel(bpy.types.Panel):split.label(text="Prompt:")prompt_row = split.row(align=True)prompt_row.prop(scene, "comfyui_prompt", text="")- prompt_row.prop(scene, "use_separate_texture_prompt", text="",- icon='BRUSH_DATA',- icon_only=True)- if scene.use_separate_texture_prompt:+ # Hide texture prompt toggle when texture mode is none/native (no separate texture pipeline)+ if not (is_trellis2 and trellis2_tex_mode in ('none', 'native')):+ prompt_row.prop(scene, "use_separate_texture_prompt", text="",+ icon='BRUSH_DATA',+ icon_only=True)+ if scene.use_separate_texture_prompt and not (is_trellis2 and trellis2_tex_mode in ('none', 'native')):split = params_container.split(factor=0.25)split.label(text="Texture Prompt:")split.prop(scene, "texture_prompt", text="")# Architecture selector (architecture_mode — includes TRELLIS.2)+ # Alert when either architecture_mode or model_architecture changes.+ _arch_diff = 'architecture_mode' in _diff_props or 'model_architecture' in _diff_propssplit = params_container.split(factor=0.5)+ if _arch_diff:+ split.alert = Truesplit.label(text="Architecture:")split.prop(scene, "architecture_mode", text="")+ if _arch_diff:+ _has_mode = 'architecture_mode' in _diff_props+ _has_model = 'model_architecture' in _diff_props+ if _has_mode:+ # architecture_mode differs — always show model in parens.+ # Use the preset's model_architecture even if it didn't change.+ _preset_key = scene.stablegen_preset+ _preset_data = PRESETS.get(_preset_key, {})+ _model_display = _fmt_diff_val(_preset_data.get(+ 'model_architecture', scene.model_architecture))+ split.label(text="→ " + _diff_props['architecture_mode']+ + " (" + _model_display + ")")+ else:+ # Only model_architecture differs (e.g. SDXL → Qwen).+ split.label(text="→ " + _diff_props['model_architecture'])if is_trellis2:# --- TRELLIS.2 specific layout ---@@ -799,12 +973,17 @@ class StableGenPanel(bpy.types.Panel):split.label(text="Texture Mode:")split.prop(scene, "trellis2_texture_mode", text="")- # Prompt + native: show initial-image architecture & checkpoint- _prompt_native = (+ # Mesh shading mode+ split = params_container.split(factor=0.5)+ split.label(text="Shading:")+ split.prop(scene, "trellis2_shade_mode", text="")++ # Prompt + native/none: show initial-image architecture & checkpoint+ _prompt_needs_initial = (scene.trellis2_generate_from == 'prompt'- and trellis2_tex_mode == 'native'+ and trellis2_tex_mode in ('native', 'none'))- if _prompt_native:+ if _prompt_needs_initial:split = params_container.split(factor=0.5)split.label(text="Initial Image Arch:")split.prop(scene, "trellis2_initial_image_arch", text="")@@ -824,11 +1003,16 @@ class StableGenPanel(bpy.types.Panel):row.operator("stablegen.refresh_checkpoint_list", text="", icon='FILE_REFRESH')split = params_container.split(factor=0.5)+ if 'generation_method' in _diff_props or 'qwen_generation_method' in _diff_props:+ split.alert = Truesplit.label(text="Generation Mode:")if scene.model_architecture.startswith("qwen"):split.prop(scene, "qwen_generation_method", text="")else:split.prop(scene, "generation_method", text="")+ _lbl = ''.join(f'→{_diff_props[k]} ' for k in ('generation_method', 'qwen_generation_method') if k in _diff_props)+ if _lbl:+ split.label(text=_lbl.strip())else:# --- Standard diffusion layout ---# Split for model name@@ -840,11 +1024,16 @@ class StableGenPanel(bpy.types.Panel):# Split for generation methodsplit = params_container.split(factor=0.5)+ if 'generation_method' in _diff_props or 'qwen_generation_method' in _diff_props:+ split.alert = Truesplit.label(text="Generation Mode:")if scene.model_architecture.startswith("qwen"):split.prop(scene, "qwen_generation_method", text="")else:split.prop(scene, "generation_method", text="")+ _lbl = ''.join(f'→{_diff_props[k]} ' for k in ('generation_method', 'qwen_generation_method') if k in _diff_props)+ if _lbl:+ split.label(text=_lbl.strip())# Split for object selectionsplit = params_container.split(factor=0.5)@@ -900,8 +1089,6 @@ class StableGenPanel(bpy.types.Panel):row.prop(scene, "trellis2_decimation", text="Decimation Target")row = content_box.row()row.prop(scene, "trellis2_remesh", text="Remesh", toggle=True, icon="MOD_REMESH")- row = content_box.row()- row.prop(scene, "trellis2_fill_holes", text="Fill Holes", toggle=True, icon="MESH_GRID")content_box.separator()@@ -948,18 +1135,6 @@ class StableGenPanel(bpy.types.Panel):split.prop(scene, "trellis2_bg_removal", text="")content_box.separator()- # Artifact Filtering (nested collapsible)- af_box = draw_collapsible_section(content_box, "show_trellis2_artifact_filter", "Artifact Filtering", icon="FILTER")- if af_box:- row = af_box.row()- row.prop(scene, "trellis2_artifact_laplacian_sigma", text="Laplacian Sigma")- row = af_box.row()- row.prop(scene, "trellis2_artifact_spike_abs_max", text="Max Spike Count")- row = af_box.row()- row.prop(scene, "trellis2_artifact_max_retries", text="Max Retries")- row = af_box.row()- row.prop(scene, "trellis2_artifact_fail_on_exhausted", text="Fail if Unresolved", toggle=True, icon="CANCEL")-# --- TRELLIS.2: Native Texture Settings ---if is_trellis2 and trellis2_tex_mode == 'native':content_box = draw_collapsible_section(advanced_params_box, "show_trellis2_texture_settings", "Texture Settings (TRELLIS.2 Native)", icon="TEXTURE")@@ -1042,10 +1217,15 @@ class StableGenPanel(bpy.types.Panel):# --- Diffusion-based advanced sections ---# Each is individually guarded: shown for standard arches or TRELLIS.2 with diffusion texturing_show_diffusion_sections = not is_trellis2 or trellis2_diffusion_texturing+ # Mesh-only + prompt mode still needs initial-image pipeline settings+ _show_initial_image_settings = (+ is_trellis2 and trellis2_tex_mode == 'none'+ and getattr(scene, 'trellis2_generate_from', 'image') == 'prompt'+ )# --- Core Generation Settings ---- if _show_diffusion_sections:+ if _show_diffusion_sections or _show_initial_image_settings:content_box = draw_collapsible_section(advanced_params_box, "show_core_settings", "Core Generation Settings", icon="SETTINGS")else:content_box = None@@ -1054,10 +1234,20 @@ class StableGenPanel(bpy.types.Panel):row.prop(scene, "seed", text="Seed")if width_mode == 'narrow':row = content_box.row()- row.prop(scene, "steps", text="Steps")+ sub = row.row()+ if 'steps' in _diff_props:+ sub.alert = True+ sub.prop(scene, "steps", text="Steps")+ if 'steps' in _diff_props:+ sub.label(text="→" + _diff_props['steps'])if width_mode == 'narrow':row = content_box.row()- row.prop(scene, "cfg", text="CFG")+ sub = row.row()+ if 'cfg' in _diff_props:+ sub.alert = True+ sub.prop(scene, "cfg", text="CFG")+ if 'cfg' in _diff_props:+ sub.label(text="→" + _diff_props['cfg'])split = content_box.split(factor=0.5)split.label(text="Negative Prompt:")@@ -1068,18 +1258,26 @@ class StableGenPanel(bpy.types.Panel):split.prop(scene, "control_after_generate", text="")split = content_box.split(factor=0.5)+ if 'sampler' in _diff_props:+ split.alert = Truesplit.label(text="Sampler:")split.prop(scene, "sampler", text="")+ if 'sampler' in _diff_props:+ split.label(text="→ " + _diff_props['sampler'])split = content_box.split(factor=0.5)+ if 'scheduler' in _diff_props:+ split.alert = Truesplit.label(text="Scheduler:")split.prop(scene, "scheduler", text="")+ if 'scheduler' in _diff_props:+ split.label(text="→ " + _diff_props['scheduler'])row = content_box.row()row.prop(scene, "clip_skip", text="Clip Skip")# --- LoRA Settings ---- if _show_diffusion_sections:+ if _show_diffusion_sections or _show_initial_image_settings:content_box = draw_collapsible_section(advanced_params_box, "show_lora_settings", "LoRA Management", icon="MODIFIER")else:content_box = None@@ -1168,8 +1366,18 @@ class StableGenPanel(bpy.types.Panel):if content_box:# Row 1: Discard-Over Angle | Weight Exponentsplit = content_box.split(factor=0.5, align=True)- split.prop(scene, "discard_factor", text="Discard Angle")- split.prop(scene, "weight_exponent", text="Exponent")+ sub = split.row()+ if 'discard_factor' in _diff_props:+ sub.alert = True+ sub.prop(scene, "discard_factor", text="Discard Angle")+ if 'discard_factor' in _diff_props:+ sub.label(text="→" + _diff_props['discard_factor'])+ sub = split.row()+ if 'weight_exponent' in _diff_props:+ sub.alert = True+ sub.prop(scene, "weight_exponent", text="Exponent")+ if 'weight_exponent' in _diff_props:+ sub.label(text="→" + _diff_props['weight_exponent'])# Row 2 & 3: Reset toggles and values (only for sequential / qwen)if scene.generation_method == 'sequential' or scene.model_architecture in ('qwen_image_edit', 'flux2_klein'):@@ -1214,8 +1422,19 @@ class StableGenPanel(bpy.types.Panel):if content_box:# ── PBR Decomposition ──row = content_box.row()+ if 'pbr_decomposition' in _diff_props:+ row.alert = Truerow.prop(scene, "pbr_decomposition", text="PBR Decomposition", toggle=True, icon="NODE_MATERIAL")+ if 'pbr_decomposition' in _diff_props:+ row.label(text="→ " + _diff_props['pbr_decomposition'])if scene.pbr_decomposition:+ # Warning if PBR decomposition nodes not detected+ if not getattr(scene, 'pbr_nodes_available', False):+ warn_row = content_box.row()+ warn_row.alert = True+ warn_split = warn_row.split(factor=0.9)+ warn_split.label(text="PBR nodes not detected on server", icon="ERROR")+ warn_split.operator("stablegen.check_server_status", text="", icon="FILE_REFRESH")sub = content_box.box()sub.label(text="PBR Decomposition", icon="NODE_MATERIAL")# ── Map toggles ──@@ -1263,7 +1482,7 @@ class StableGenPanel(bpy.types.Panel):adj_row = sub.row(align=True)adj_row.prop(scene, "pbr_albedo_auto_saturation", text="Correct Albedo Saturation", toggle=True, icon="BRUSHES_ALL")if scene.pbr_albedo_auto_saturation:- adj_row.prop(scene, "pbr_albedo_per_camera_saturation", text="Per Camera", toggle=True)+ adj_row.prop(scene, "pbr_albedo_saturation_mode", text="")sub.separator()# ── Quality settings ──row = sub.row(align=True)@@ -1307,7 +1526,11 @@ class StableGenPanel(bpy.types.Panel):row = sub_box_rescale.row()row.prop(scene, "qwen_rescale_alignment", text="Qwen VL-Aligned Rescale (112px)", toggle=True, icon="SNAP_INCREMENT")row = content_box.row()+ if 'overwrite_material' in _diff_props:+ row.alert = Truerow.prop(scene, "overwrite_material", text="Overwrite Material", toggle=True, icon="FILE_REFRESH")+ if 'overwrite_material' in _diff_props:+ row.label(text="→ " + _diff_props['overwrite_material'])# --- Image Guidance (IPAdapter & ControlNet) ---if _show_diffusion_sections:@@ -1447,6 +1670,9 @@ class StableGenPanel(bpy.types.Panel):context_box = content_box.box()context_box.label(text="Context Render Options")+ row = context_box.row()+ row.prop(scene, "qwen_prompt_gray_background", text="Prompt: Gray Background", toggle=True)+if scene.qwen_use_custom_prompts:colors_box = context_box.box()colors_box.label(text="Context Render Colors")@@ -1545,7 +1771,11 @@ class StableGenPanel(bpy.types.Panel):content_box = draw_collapsible_section(advanced_params_box, "show_masking_inpainting_settings", "Inpainting Options", icon="MOD_MASK")if content_box: # content_box is the container for these settingsrow = content_box.row()+ if 'differential_diffusion' in _diff_props:+ row.alert = Truerow.prop(scene, "differential_diffusion", text="Use Differential Diffusion", toggle=True, icon="SMOOTHCURVE")+ if 'differential_diffusion' in _diff_props:+ row.label(text="→ " + _diff_props['differential_diffusion'])if scene.differential_diffusion:row = content_box.row()@@ -1584,7 +1814,11 @@ class StableGenPanel(bpy.types.Panel):row.alignment = 'CENTER'row.label(text="Qwen Local Edit Parameters", icon='BRUSH_DATA')row = mode_specific_outer_box.row()+ if 'denoise' in _diff_props:+ row.alert = Truerow.prop(scene, "denoise", text="Denoise")+ if 'denoise' in _diff_props:+ row.label(text="→ " + _diff_props['denoise'])# Angle Ramp Controlsbox = mode_specific_outer_box.box()@@ -1637,7 +1871,11 @@ class StableGenPanel(bpy.types.Panel):row.alignment = 'CENTER'row.label(text="Qwen Refine Parameters", icon='SHADERFX')row = mode_specific_outer_box.row()+ if 'denoise' in _diff_props:+ row.alert = Truerow.prop(scene, "denoise", text="Denoise")+ if 'denoise' in _diff_props:+ row.label(text="→ " + _diff_props['denoise'])# Grid Mode Parameterselif scene.generation_method == 'grid':@@ -1658,7 +1896,11 @@ class StableGenPanel(bpy.types.Panel):split.prop(scene, "refine_scheduler", text="")row = mode_specific_outer_box.row()+ if 'denoise' in _diff_props:+ row.alert = Truerow.prop(scene, "denoise", text="Denoise")+ if 'denoise' in _diff_props:+ row.label(text="→ " + _diff_props['denoise'])if width_mode == 'narrow':row = mode_specific_outer_box.row()row.prop(scene, "refine_cfg", text="Refine CFG")@@ -1722,7 +1964,11 @@ class StableGenPanel(bpy.types.Panel):row.alignment = 'CENTER'row.label(text="Refine Mode Parameters", icon='SHADERFX')row = mode_specific_outer_box.row()- row.prop(scene, "denoise", text="Denoise")+ if 'denoise' in _diff_props:+ row.alert = True+ row.prop(scene, "denoise", text="Denoise")+ if 'denoise' in _diff_props:+ row.label(text="→ " + _diff_props['denoise'])row = mode_specific_outer_box.row()row.prop(scene, "sequential_ipadapter", text="Use IPAdapter for Refine Mode", toggle=True, icon="MODIFIER")if scene.sequential_ipadapter:@@ -1759,7 +2005,11 @@ class StableGenPanel(bpy.types.Panel):row.alignment = 'CENTER'row.label(text="Local Edit Parameters", icon='BRUSH_DATA')row = mode_specific_outer_box.row()+ if 'denoise' in _diff_props:+ row.alert = Truerow.prop(scene, "denoise", text="Denoise")+ if 'denoise' in _diff_props:+ row.label(text="→ " + _diff_props['denoise'])# Angle Ramp Controlsbox = mode_specific_outer_box.box()@@ -1854,7 +2104,11 @@ class StableGenPanel(bpy.types.Panel):if not (scene.differential_diffusion and not scene.differential_noise):row = mode_specific_outer_box.row()+ if 'sequential_smooth' in _diff_props:+ row.alert = Truerow.prop(scene, "sequential_smooth", text="Use Smooth Visibility Map", toggle=True, icon="MOD_SMOOTH")+ if 'sequential_smooth' in _diff_props:+ row.label(text="→ " + _diff_props['sequential_smooth'])if width_mode == 'narrow':row = mode_specific_outer_box.row()row.prop(scene, "weight_exponent_mask", text="Exponent for Visibility Map", toggle=True, icon="IPO_EXPO")@@ -1971,12 +2225,11 @@ class StableGenPanel(bpy.types.Panel):row = debug_box.row()op2 = row.operator("stablegen.debug_feather_preview", text="Feather Preview", icon="MOD_SMOOTH")- # --- Narrow panel warning ---+ # --- Narrow panel hint ---if width_mode == 'narrow':- warn_box = layout.box()- warn_row = warn_box.row()- warn_row.alert = True- warn_row.label(text="Panel too narrow — widen for full layout", icon="ERROR")+ hint_row = layout.row()+ hint_row.alignment = 'CENTER'+ hint_row.label(text="Widen panel for side-by-side layout", icon="INFO")layout.separator()@@ -2106,6 +2359,24 @@ class ApplyPreset(bpy.types.Operator):return {'FINISHED'}+class SwitchToMeshGeneration(bpy.types.Operator):+ """Switch to mesh generation mode using TRELLIS.2"""+ bl_idname = "stablegen.switch_to_mesh_generation"+ bl_label = "Switch to Mesh Generation"+ bl_description = "Apply the TRELLIS.2 (Mesh Only) preset to generate 3D meshes"++ @classmethod+ def poll(cls, context):+ return (not sg_modal_active(context)+ and "TRELLIS.2 (MESH ONLY)" in PRESETS+ and getattr(context.scene, 'trellis2_available', False))++ def execute(self, context):+ context.scene.stablegen_preset = "TRELLIS.2 (MESH ONLY)"+ bpy.ops.stablegen.apply_preset()+ return {'FINISHED'}++class SavePreset(bpy.types.Operator):"""Save the current parameter values as a custom preset"""bl_idname = "stablegen.save_preset"@@ -2278,7 +2549,11 @@ class SG_UL_SceneQueueList(bpy.types.UIList):row.label(text="", icon='CHECKMARK')elif item.status == 'error':retry_txt = f"x{item.retries}" if item.retries else ""- row.label(text=retry_txt, icon='ERROR')+ if item.error_reason:+ reason_short = item.error_reason[:28] + "…" if len(item.error_reason) > 30 else item.error_reason+ row.label(text=f"{reason_short} {retry_txt}".strip(), icon='ERROR')+ else:+ row.label(text=retry_txt, icon='ERROR')elif item.status == 'processing':retry_txt = f"#{item.retries + 1}" if item.retries else ""row.label(text=retry_txt, icon='SORTTIME')@@ -2531,19 +2806,21 @@ class SceneQueueMoveDown(bpy.types.Operator):class SceneQueueOpenResult(bpy.types.Operator):- """Open the processed .blend copy for the selected queue item"""+ """Open the .blend snapshot for the selected queue item"""bl_idname = "stablegen.queue_open_result"- bl_label = "Open Result"- bl_description = "Open the .blend snapshot of the selected processed queue item"+ bl_label = "Open"+ bl_description = "Open the .blend snapshot of the selected queue item"@classmethoddef poll(cls, context):+ if sg_modal_active(context):+ return Falsewm = context.window_manageridx = wm.sg_scene_queue_indexif idx < 0 or idx >= len(wm.sg_scene_queue):return Falseitem = wm.sg_scene_queue[idx]- return item.status == 'done' and item.blend_file and os.path.isfile(item.blend_file)+ return bool(item.blend_file) and os.path.isfile(item.blend_file)def execute(self, context):wm = context.window_manager@@ -2552,11 +2829,126 @@ class SceneQueueOpenResult(bpy.types.Operator):try:bpy.ops.wm.open_mainfile(filepath=filepath)except Exception as e:- self.report({'ERROR'}, f"Failed to open result: {e}")+ self.report({'ERROR'}, f"Failed to open file: {e}")return {'CANCELLED'}return {'FINISHED'}+class SceneQueueInvalidate(bpy.types.Operator):+ """Reset a processed queue item back to pending and clear its scene"""+ bl_idname = "stablegen.queue_invalidate"+ bl_label = "Reset to Pending"+ bl_description = (+ "Reset the selected item to unprocessed, "+ "removing generated meshes and cameras from its snapshot "+ "so it can be re-processed"+ )+ bl_options = {'REGISTER', 'UNDO'}++ @classmethod+ def poll(cls, context):+ wm = context.window_manager+ idx = wm.sg_scene_queue_index+ if _queue_processing:+ cls.poll_message_set("Queue is currently processing")+ return False+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")+ return False+ if idx < 0 or idx >= len(wm.sg_scene_queue):+ cls.poll_message_set("No queue item selected")+ return False+ item = wm.sg_scene_queue[idx]+ if item.status not in ('done', 'error'):+ cls.poll_message_set("Only completed or failed items can be reset")+ return False+ if not item.blend_file or not os.path.isfile(item.blend_file):+ cls.poll_message_set("Snapshot .blend file not found")+ return False+ return True++ def invoke(self, context, event):+ wm = context.window_manager+ idx = wm.sg_scene_queue_index+ item = wm.sg_scene_queue[idx]+ display = item.label or item.scene_name+ return context.window_manager.invoke_confirm(+ self, event,+ message=f"Reset '{display}'?\nThis will remove generated meshes and cameras from its snapshot and mark it as unprocessed.",+ confirm_text="Reset",+ )++ def execute(self, context):+ wm = context.window_manager+ idx = wm.sg_scene_queue_index+ item = wm.sg_scene_queue[idx]+ blend_path = item.blend_file+ display = item.label or item.scene_name++ # Open the processed .blend, clean it, save, then re-open current+ current_file = bpy.data.filepath++ try:+ bpy.ops.wm.open_mainfile(filepath=blend_path)+ except Exception as e:+ self.report({'ERROR'}, f"Failed to open snapshot: {e}")+ return {'CANCELLED'}++ # Remove all mesh objects and cameras from the scene+ scene = bpy.context.scene+ to_remove = [obj for obj in scene.objects if obj.type in {'MESH', 'CAMERA', 'EMPTY'}]+ for obj in to_remove:+ bpy.data.objects.remove(obj, do_unlink=True)++ # Purge orphaned data+ for block_attr in ('meshes', 'cameras', 'materials', 'images'):+ collection = getattr(bpy.data, block_attr, None)+ if collection is None:+ continue+ orphans = [b for b in collection if b.users == 0]+ for orphan in orphans:+ collection.remove(orphan)++ # Save the cleaned .blend in place+ try:+ bpy.ops.wm.save_mainfile()+ print(f"[Queue] Invalidated and saved: {blend_path}")+ except Exception as e:+ print(f"[Queue] Save warning during invalidate: {e}")++ # Mark the item as pending directly in the queue JSON file.+ # After open_mainfile the in-memory queue collection is empty+ # (it's restored 0.3 s later by the deferred load handler), so+ # patching the JSON is the only reliable approach.+ try:+ from . import _sg_queue_filepath+ fp = _sg_queue_filepath()+ if os.path.isfile(fp):+ import json as _json+ with open(fp, 'r', encoding='utf-8') as f:+ data = _json.load(f)+ items_list = data.get("items", data) if isinstance(data, dict) else data+ if isinstance(items_list, list) and idx < len(items_list):+ items_list[idx]["status"] = "pending"+ items_list[idx]["retries"] = 0+ items_list[idx]["error_reason"] = ""+ with open(fp, 'w', encoding='utf-8') as f:+ _json.dump(data, f)+ print(f"[Queue] Marked item {idx} as pending in queue JSON")+ except Exception as e:+ print(f"[Queue] Warning: could not update queue JSON: {e}")++ # Re-open the original file (if we had one)+ if current_file and os.path.isfile(current_file):+ try:+ bpy.ops.wm.open_mainfile(filepath=current_file)+ except Exception:+ pass++ self.report({'INFO'}, f"Reset '{display}' — ready for re-processing")+ return {'FINISHED'}++class SceneQueueProcess(bpy.types.Operator):"""Start or cancel batch processing of the scene queue"""bl_idname = "stablegen.queue_process"@@ -2568,7 +2960,13 @@ class SceneQueueProcess(bpy.types.Operator):wm = context.window_managerif _queue_processing:return True # Allow clicking to cancel- return len(wm.sg_scene_queue) > 0 and not sg_modal_active(context)+ if len(wm.sg_scene_queue) == 0:+ cls.poll_message_set("Queue is empty — add scenes first")+ return False+ if sg_modal_active(context):+ cls.poll_message_set("Another operation is in progress")+ return False+ return Truedef execute(self, context):global _queue_processing, _queue_timer, _queue_current_idx, _queue_phase@@ -2659,6 +3057,7 @@ def _queue_tick():if not os.path.isfile(target):print(f"[Queue] Blend file not found: {target} — skipping.")item.status = 'error'+ item.error_reason = "Blend file not found"_queue_current_idx += 1_persist_queue()_tag_redraw()@@ -2698,6 +3097,7 @@ def _queue_tick():if not scene_ref:print(f"[Queue] Scene '{item.scene_name}' not found — skipping.")item.status = 'error'+ item.error_reason = "Scene not found"_queue_current_idx += 1_tag_redraw()return 0.5 # Try next immediately@@ -2915,6 +3315,7 @@ def _queue_handle_failure(item, reason):f"(attempt {item.retries + 1}/{_QUEUE_MAX_RETRIES}): {reason}")else:item.status = 'error'+ item.error_reason = reasonprint(f"[Queue] '{item.label or item.scene_name}' failed after "f"{_QUEUE_MAX_RETRIES} attempts: {reason}")_queue_current_idx += 1diff --git a/stablegen/util/helpers.py b/stablegen/util/helpers.pyindex 67c11b1..3232d26 100755--- a/stablegen/util/helpers.py+++ b/stablegen/util/helpers.py@@ -1797,7 +1797,7 @@ prompt_text_trellis2_shape_only = """"inputs": {"trimesh": ["5", 1],"target_face_count": 100000,- "fill_holes": true,+ "fill_holes": false,"remesh": false,"remesh_band": 1.0},diff --git a/stablegen/util/mirror_color.py b/stablegen/util/mirror_color.pyindex d41ec4d..a4cc159 100644--- a/stablegen/util/mirror_color.py+++ b/stablegen/util/mirror_color.py@@ -5,7 +5,7 @@ from PIL import Imageimport mathutilsfrom mathutils import Vector-from ..utils import get_file_path, get_last_material_index+from ..utils import get_file_path, get_last_material_index, sg_modal_activefrom ..project import project_imagefrom ..color_match import color_match_single@@ -92,21 +92,8 @@ class MirrorReproject(bpy.types.Operator):if scene.generation_status == 'waiting':return False- blocked_ids = {- 'OBJECT_OT_add_cameras',- 'OBJECT_OT_bake_textures',- 'OBJECT_OT_collect_camera_prompts',- 'OBJECT_OT_test_stable',- 'OBJECT_OT_stablegen_reproject',- 'OBJECT_OT_stablegen_regenerate',- 'OBJECT_OT_stablegen_mirror_reproject',- }-- wm = context.window_manager- for window in wm.windows:- for op in window.modal_operators:- if op.bl_idname in blocked_ids:- return False+ if sg_modal_active(context):+ return Falsereturn Truediff --git a/stablegen/workflows.py b/stablegen/workflows.pyindex b90e739..b6f9d63 100644--- a/stablegen/workflows.py+++ b/stablegen/workflows.py@@ -3,7 +3,6 @@ import osimport jsonimport uuidimport random-import structimport websocketimport socketimport urllib.request@@ -409,18 +408,32 @@ class WorkflowManager:is_generating = hasattr(self.operator, '_current_image')is_subsequent_in_sequence = is_generating and self.operator._current_image > 0+ # TRELLIS.2 style reference counts as a style image for prompt selection.+ _t2_style = (+ getattr(context.scene, 'architecture_mode', '') == 'trellis2'+ and getattr(context.scene, 'qwen_use_trellis2_style', False)+ )+if is_initial_image:- # First frame only has a style reference when an explicit external image is supplied.- style_image_provided = context.scene.qwen_use_external_style_image+ # First frame has a style reference from an external image or the TRELLIS.2 input.+ style_image_provided = (+ context.scene.qwen_use_external_style_image+ or _t2_style+ )else:- # Later frames can draw style from previous renders, external sources, or context renders.+ # Later frames can draw style from previous renders, external sources,+ # context renders, or the TRELLIS.2 input (when not initial-only).style_image_provided = (context.scene.qwen_use_external_style_image orcontext.scene.sequential_ipadapter or- context.scene.qwen_context_render_mode in {'REPLACE_STYLE', 'ADDITIONAL'}+ context.scene.qwen_context_render_mode in {'REPLACE_STYLE', 'ADDITIONAL'} or+ (_t2_style and not getattr(context.scene, 'qwen_trellis2_style_initial_only', False)))context_mode = context.scene.qwen_context_render_mode+ # Optional sentence injected into context-render prompts.+ gray_bg = " Replace the background with solid gray." if getattr(context.scene, 'qwen_prompt_gray_background', True) else ""+if is_initial_image:if not style_image_provided:return "Change the format of image 1 to '{main_prompt}'"@@ -428,9 +441,9 @@ class WorkflowManager:return "Change and transfer the format of '{main_prompt}' in image 1 to the style from image 2"else: # Subsequent imageif context_mode == 'ADDITIONAL':- return "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object."+ return f"Change and transfer the format of image 1 to '{{main_prompt}}'. Replace all solid magenta areas in image 2.{gray_bg} The style from image 2 should smoothly continue into the previously magenta areas. Image 3 represents the overall style of the object."elif context_mode == 'REPLACE_STYLE':- return "Change and transfer the format of image 1 to '{main_prompt}'. Replace all solid magenta areas in image 2. Replace the background with solid gray. The style from image 2 should smoothly continue into the previously magenta areas."+ return f"Change and transfer the format of image 1 to '{{main_prompt}}'. Replace all solid magenta areas in image 2.{gray_bg} The style from image 2 should smoothly continue into the previously magenta areas."else: # NONE or other casesif not style_image_provided:return "Change the format of image 1 to '{main_prompt}'"@@ -1493,12 +1506,20 @@ class WorkflowManager:f"or git clone https://github.com/kijai/ComfyUI-Marigold "f"into ComfyUI/custom_nodes/) and ensure 'diffusers>=0.28' "f"is installed in ComfyUI's Python, then restart ComfyUI."}- except Exception:- return {"error": f"ComfyUI-Marigold node '{node_class}' not found. "- f"Install ComfyUI-Marigold (run installer option 9 "- f"or git clone https://github.com/kijai/ComfyUI-Marigold "- f"into ComfyUI/custom_nodes/) and ensure 'diffusers>=0.28' "- f"is installed in ComfyUI's Python, then restart ComfyUI."}+ except urllib.error.HTTPError as e:+ if e.code == 404:+ return {"error": f"ComfyUI-Marigold node '{node_class}' not found. "+ f"Install ComfyUI-Marigold (run installer option 9 "+ f"or git clone https://github.com/kijai/ComfyUI-Marigold "+ f"into ComfyUI/custom_nodes/) and ensure 'diffusers>=0.28' "+ f"is installed in ComfyUI's Python, then restart ComfyUI."}+ return {"error": f"PBR model error: failed to query ComfyUI for node "+ f"'{node_class}' (HTTP {e.code}). Is ComfyUI running?"}+ except Exception as e:+ return {"error": f"PBR model error: could not reach ComfyUI at "+ f"'{server_address}' while checking for node '{node_class}' "+ f"({type(e).__name__}: {e}). Verify ComfyUI is running and "+ f"the server address is correct."}# Upload the source image to ComfyUI's input folderfrom .generator import upload_image_to_comfyui@@ -1636,14 +1657,22 @@ class WorkflowManager:f"into ComfyUI/custom_nodes/) and download the model "f"'Stable-X/yoso-delight-v0-4-base' into "f"ComfyUI/models/diffusers/, then restart ComfyUI."}- except Exception:- return {"error": f"StableDelight node '{node_class}' not found. "- f"Install ComfyUI_StableDelight_ll (run installer "- f"option 10 or git clone "- f"https://github.com/lldacing/ComfyUI_StableDelight_ll "- f"into ComfyUI/custom_nodes/) and download the model "- f"'Stable-X/yoso-delight-v0-4-base' into "- f"ComfyUI/models/diffusers/, then restart ComfyUI."}+ except urllib.error.HTTPError as e:+ if e.code == 404:+ return {"error": f"StableDelight node '{node_class}' not found. "+ f"Install ComfyUI_StableDelight_ll (run installer "+ f"option 10 or git clone "+ f"https://github.com/lldacing/ComfyUI_StableDelight_ll "+ f"into ComfyUI/custom_nodes/) and download the model "+ f"'Stable-X/yoso-delight-v0-4-base' into "+ f"ComfyUI/models/diffusers/, then restart ComfyUI."}+ return {"error": f"Normal estimation error: failed to query ComfyUI for node "+ f"'{node_class}' (HTTP {e.code}). Is ComfyUI running?"}+ except Exception as e:+ return {"error": f"Normal estimation error: could not reach ComfyUI at "+ f"'{server_address}' while checking for node '{node_class}' "+ f"({type(e).__name__}: {e}). Verify ComfyUI is running and "+ f"the server address is correct."}# Resolve model path — the node expects a relative path under# ComfyUI/models/diffusers/ containing model_index.json.@@ -2034,321 +2063,12 @@ class WorkflowManager:return prompt, "7"- # ── GLB mesh validation ───────────────────────────────────────────- _GLB_VERTEX_THRESHOLD = 10.0 # absolute coordinate cap- _GLB_OUTLIER_SIGMA = 8.0 # for absolute-value outlier check- _GLB_LAPLACIAN_SIGMA = 8.0 # fallback — overridden by scene property- _GLB_SPIKE_FRACTION = 0.002 # 0.02% — very tight because at 10σ virtually all- # flagged vertices are genuine artifacts- _GLB_SPIKE_ABS_MAX = 25 # fallback — overridden by scene property-- @staticmethod- def _validate_glb_mesh(glb_bytes, threshold=None, sigma=None):- """- GLB mesh integrity check that catches both extreme values and- subtle spiky artifacts (the cumesh/Dual Contouring Windows bug).-- Three-layer validation:- 1. **Hard limits** – NaN, Inf, absolute coordinate > *threshold*.- 2. **Statistical outliers** – coords beyond *sigma* σ from mean.- 3. **Laplacian smoothness** – for each vertex, measure displacement- from the average of its mesh neighbors. Vertices displaced by- more than ``_GLB_LAPLACIAN_SIGMA`` σ of the mesh-wide Laplacian- distribution are flagged. If more than ``_GLB_SPIKE_FRACTION``- of all vertices are flagged, the mesh is considered corrupt.-- Returns ``(True, "")`` on success or ``(False, reason)`` on failure.- """- if threshold is None:- threshold = WorkflowManager._GLB_VERTEX_THRESHOLD- if sigma is None:- sigma = WorkflowManager._GLB_OUTLIER_SIGMA- # Read user-facing settings if available, else use class defaults- _scene = getattr(bpy.context, 'scene', None)- lap_sigma = getattr(_scene, 'trellis2_artifact_laplacian_sigma',- WorkflowManager._GLB_LAPLACIAN_SIGMA)- spike_frac = WorkflowManager._GLB_SPIKE_FRACTION-- if not glb_bytes or len(glb_bytes) < 20:- return False, "GLB data too small"-- try:- # ── Parse GLB container ──────────────────────────────────- magic, version, total_len = struct.unpack_from('<III', glb_bytes, 0)- if magic != 0x46546C67: # 'glTF'- return False, "Not a valid GLB (bad magic)"-- json_len, json_type = struct.unpack_from('<II', glb_bytes, 12)- if json_type != 0x4E4F534A: # 'JSON'- return False, "First GLB chunk is not JSON"- gltf = json.loads(glb_bytes[20:20 + json_len])-- bin_offset = 20 + json_len- if bin_offset % 4:- bin_offset += 4 - (bin_offset % 4)- if bin_offset + 8 > len(glb_bytes):- return False, "No binary chunk found"- bin_len, bin_type = struct.unpack_from('<II', glb_bytes, bin_offset)- bin_data = glb_bytes[bin_offset + 8: bin_offset + 8 + bin_len]-- accessors = gltf.get('accessors', [])- buffer_views = gltf.get('bufferViews', [])- meshes = gltf.get('meshes', [])-- # ── Collect all primitives (position accessor + index accessor)- primitives_info = []- for mesh in meshes:- for prim in mesh.get('primitives', []):- pos_idx = prim.get('attributes', {}).get('POSITION')- idx_idx = prim.get('indices')- if pos_idx is not None:- primitives_info.append((pos_idx, idx_idx))-- if not primitives_info:- return False, "No POSITION accessor found in GLB"-- total_verts = 0- total_spikes = 0-- for pos_acc_idx, idx_acc_idx in primitives_info:- # ── Read vertex positions ────────────────────────────- acc = accessors[pos_acc_idx]- bv = buffer_views[acc['bufferView']]- off = bv.get('byteOffset', 0) + acc.get('byteOffset', 0)- count = acc['count']- total_verts += count- num_floats = count * 3- end = off + num_floats * 4- if end > len(bin_data):- return False, (f"POSITION data overflows binary chunk "- f"(need {end}, have {len(bin_data)})")-- raw = struct.unpack_from(f'<{num_floats}f', bin_data, off)-- # --- Layer 1: hard checks ---- for i, v in enumerate(raw):- if v != v:- return False, f"NaN vertex at float index {i}"- if abs(v) == float('inf'):- return False, f"Inf vertex at float index {i}"- if abs(v) > threshold:- return False, (f"Extreme vertex {v:.2e} at float "- f"index {i} (threshold {threshold})")-- # --- Layer 2: absolute statistical outlier ---- if count >= 10:- mean_v = sum(raw) / len(raw)- var_v = sum((v - mean_v) ** 2 for v in raw) / len(raw)- std_v = var_v ** 0.5- if std_v > 1e-9:- for i, v in enumerate(raw):- dev = abs(v - mean_v) / std_v- if dev > sigma:- return False, (- f"Outlier vertex: {v:.4f} is {dev:.1f}σ "- f"from mean {mean_v:.4f} at float idx {i}")-- # --- Layer 3: Laplacian smoothness (needs indices) ----- if idx_acc_idx is None or count < 10:- continue # can't do topology check without indices-- # Build positions list as (x, y, z) tuples- positions = [(raw[i*3], raw[i*3+1], raw[i*3+2])- for i in range(count)]-- # Read triangle indices- idx_acc = accessors[idx_acc_idx]- idx_bv = buffer_views[idx_acc['bufferView']]- idx_off = idx_bv.get('byteOffset', 0) + idx_acc.get('byteOffset', 0)- idx_count = idx_acc['count']- comp_type = idx_acc.get('componentType', 5123)- # 5121=UNSIGNED_BYTE, 5123=UNSIGNED_SHORT, 5125=UNSIGNED_INT- if comp_type == 5121:- fmt, sz = 'B', 1- elif comp_type == 5123:- fmt, sz = 'H', 2- else: # 5125- fmt, sz = 'I', 4-- idx_end = idx_off + idx_count * sz- if idx_end > len(bin_data):- continue # skip Laplacian if index data is bad- indices = struct.unpack_from(- f'<{idx_count}{fmt}', bin_data, idx_off)-- # Build neighbor sets from triangles- neighbors = [set() for _ in range(count)]- for t in range(0, idx_count, 3):- if t + 2 >= idx_count:- break- a, b, c = indices[t], indices[t+1], indices[t+2]- if a < count and b < count and c < count:- neighbors[a].update((b, c))- neighbors[b].update((a, c))- neighbors[c].update((a, b))-- # Compute Laplacian displacement magnitudes- laplacians = []- for vi in range(count):- nbrs = neighbors[vi]- if not nbrs:- continue- px, py, pz = positions[vi]- ax = sum(positions[n][0] for n in nbrs) / len(nbrs)- ay = sum(positions[n][1] for n in nbrs) / len(nbrs)- az = sum(positions[n][2] for n in nbrs) / len(nbrs)- dx, dy, dz = px - ax, py - ay, pz - az- laplacians.append((dx*dx + dy*dy + dz*dz) ** 0.5)-- if len(laplacians) < 10:- continue-- lap_mean = sum(laplacians) / len(laplacians)- lap_var = sum((v - lap_mean)**2 for v in laplacians) / len(laplacians)- lap_std = lap_var ** 0.5-- if lap_std < 1e-12:- continue # perfectly smooth mesh, nothing to flag-- spike_count = sum(- 1 for v in laplacians- if (v - lap_mean) / lap_std > lap_sigma- )- total_spikes += spike_count-- # Check overall spike count (absolute cap + fraction)- if total_verts > 0 and total_spikes > 0:- frac = total_spikes / total_verts- abs_max = getattr(_scene, 'trellis2_artifact_spike_abs_max',- WorkflowManager._GLB_SPIKE_ABS_MAX)- if total_spikes > abs_max:- return False, (- f"Mesh has {total_spikes} Laplacian-outlier vertices "- f"(exceeds absolute cap of {abs_max}). "- f"Likely cumesh corruption."- )- if frac > spike_frac:- return False, (- f"Mesh has {total_spikes} Laplacian-outlier vertices "- f"({frac*100:.2f}% of {total_verts} — threshold "- f"{spike_frac*100:.2f}%). Likely cumesh corruption."- )-- print(f"[TRELLIS2] Mesh validation passed "- f"({total_verts} verts, {total_spikes} minor spikes).")- return True, ""- except (struct.error, json.JSONDecodeError, KeyError, IndexError) as e:- return False, f"GLB parse error: {e}"-@staticmethoddef _is_local_server(server_address):"""Return True if server_address points to localhost."""host = server_address.split(':')[0].strip()return host in ('127.0.0.1', 'localhost', '0.0.0.0', '::1', '')- @staticmethod- def _clear_triton_cache():- """- Delete the Triton JIT kernel cache.- On Windows this lives at ``%USERPROFILE%\\.triton\\cache``.- Returns True if anything was deleted.- """- import shutil- import pathlib-- candidates = []- # Standard location- home = pathlib.Path.home()- candidates.append(home / '.triton' / 'cache')- # TRITON_CACHE_DIR env override- env_dir = os.environ.get('TRITON_CACHE_DIR')- if env_dir:- candidates.append(pathlib.Path(env_dir))-- cleared = False- for cache_dir in candidates:- if cache_dir.is_dir():- try:- count = sum(1 for _ in cache_dir.rglob('*') if _.is_file())- shutil.rmtree(cache_dir, ignore_errors=True)- print(f"[TRELLIS2] Cleared Triton cache: {cache_dir} "- f"({count} files)")- cleared = True- except Exception as e:- print(f"[TRELLIS2] Failed to clear Triton cache {cache_dir}: {e}")- return cleared-- def _reboot_comfyui(self, server_address, poll_timeout=None):- """- Attempt to reboot ComfyUI via the ComfyUI Manager ``/manager/reboot``- endpoint, then wait for the server to come back online.-- Returns True if the server rebooted and is reachable again.- Returns False if ComfyUI Manager is not installed (404), the request- failed, or the server did not come back within *poll_timeout* seconds.- """- import time-- if poll_timeout is None:- poll_timeout = get_timeout('reboot')-- reboot_url = f"http://{server_address}/manager/reboot"- print(f"[TRELLIS2] Requesting ComfyUI reboot via {reboot_url} ...")-- try:- req = urllib.request.Request(reboot_url, method='GET')- resp = urllib.request.urlopen(req, timeout=get_timeout('api'))- status = resp.getcode()- if status not in (200, 201, 204):- print(f"[TRELLIS2] Reboot endpoint returned unexpected status {status}")- return False- except urllib.error.HTTPError as e:- if e.code == 404:- print(f"[TRELLIS2] Reboot endpoint not found (HTTP 404). "- f"ComfyUI Manager may not be installed.")- return False- # Other HTTP errors (5xx etc.) might mean the server is already- # shutting down — treat as potentially successful.- print(f"[TRELLIS2] Reboot endpoint returned HTTP {e.code}, "- f"proceeding to poll (server may be restarting)...")- except Exception as e:- # Connection reset / broken pipe / timeout are EXPECTED when the- # server process dies mid-response. Treat as likely success.- print(f"[TRELLIS2] Connection dropped after reboot request "- f"({type(e).__name__}: {e}) — server is likely restarting.")-- print("[TRELLIS2] Reboot request sent. Waiting for server to go down...")-- # Phase 1: Wait for the server to actually go down (up to 15s).- # If it never goes down, the reboot may not have taken effect.- down_deadline = time.time() + 15- went_down = False- time.sleep(2) # give the process a moment to start shutting down- while time.time() < down_deadline:- if not self._check_server_alive(server_address, timeout=2):- went_down = True- break- time.sleep(1)-- if not went_down:- # Server never went down — maybe the reboot was a no-op- print("[TRELLIS2] Server did not appear to go down. "- "Continuing anyway (it may have rebooted very quickly).")-- # Phase 2: Poll until the server is back up.- print("[TRELLIS2] Waiting for server to come back up...")- up_deadline = time.time() + poll_timeout- while time.time() < up_deadline:- if self._check_server_alive(server_address, timeout=3):- print("[TRELLIS2] Server is back online!")- # Give it a few extra seconds to finish loading custom nodes- time.sleep(5)- return True- time.sleep(3)-- print(f"[TRELLIS2] Server did not come back within {poll_timeout}s.")- return False-def generate_trellis2(self, context, input_image_path):"""Generates a 3D mesh using TRELLIS.2 via ComfyUI.@@ -2358,15 +2078,6 @@ class WorkflowManager:and downloads the resulting GLB file from the ComfyUI server.VRAM is always flushed before AND after generation.- If the resulting mesh contains degenerate vertices (a known cumesh /- Dual Contouring issue on Windows, caused by corrupted Triton JIT- cache), the addon will:-- 1. Clear the Triton cache (if the server is local).- 2. Reboot ComfyUI via the ComfyUI Manager ``/manager/reboot``- endpoint (works for both local and remote servers).- 3. Run one final generation attempt with a fresh process.-Args:context: Blender context.input_image_path: Local path to the input image file.@@ -2375,7 +2086,6 @@ class WorkflowManager:bytes: GLB file binary data on success.dict: {"error": "message"} on failure."""- import urllib.parseimport timeserver_address = context.preferences.addons[__package__].preferences.server_address@@ -2391,90 +2101,12 @@ class WorkflowManager:if not self._check_server_alive(server_address):return {"error": "ComfyUI server is not responding. Please restart it and try again."}- is_local = self._is_local_server(server_address)- original_seed = context.scene.trellis2_seed- max_retries = getattr(context.scene, 'trellis2_artifact_max_retries', 1)-try:- # ── First attempt ──────────────────────────────────────────client_id = str(uuid.uuid4())result = self._generate_trellis2_inner(context, input_image_path, server_address, client_id)-- if isinstance(result, dict) and "error" in result:- return result-- ok, reason = self._validate_glb_mesh(result)- if ok:- return result-- # Mesh is corrupt — Triton JIT cache is the most common cause.- print(f"[TRELLIS2] Mesh validation FAILED: {reason}")-- if max_retries <= 0:- print("[TRELLIS2] Artifact retries disabled (max_retries=0).")- else:- print(f"[TRELLIS2] Attempting automatic recovery "- f"(up to {max_retries} retries, Triton cache clear + ComfyUI reboot)...")-- rebooted = False- for retry_i in range(max_retries):- # ── Recovery: clear cache + reboot ─────────────────────- if is_local:- self._clear_triton_cache()-- rebooted = self._reboot_comfyui(server_address)-- if not rebooted:- print(f"[TRELLIS2] Could not reboot ComfyUI — aborting retries.")- break-- print(f"[TRELLIS2] Retry {retry_i + 1}/{max_retries} after reboot...")- new_seed = random.randint(0, 2**31 - 1)- context.scene.trellis2_seed = new_seed- client_id = str(uuid.uuid4())- result = self._generate_trellis2_inner(- context, input_image_path, server_address, client_id)-- if isinstance(result, dict) and "error" in result:- return result-- ok, reason = self._validate_glb_mesh(result)- if ok:- return result-- print(f"[TRELLIS2] Retry {retry_i + 1}/{max_retries} also failed: {reason}")-- # ── Truly exhausted ────────────────────────────────────────- if is_local:- warning_msg = (- "Mesh has artifacts (corrupt Triton JIT cache). "- f"Cache was cleared and ComfyUI was "- f"{'rebooted' if rebooted else 'NOT rebooted (install ComfyUI Manager for auto-reboot)'}. "- "Try manually restarting ComfyUI."- )- else:- warning_msg = (- "Mesh has artifacts (corrupt Triton JIT cache). "- f"{'ComfyUI was rebooted but issue persists.' if rebooted else 'Could not auto-reboot (ComfyUI Manager not installed?).'} "- "On the ComfyUI host, delete C:\\Users\\<USERNAME>\\.triton\\cache "- "and restart ComfyUI."- )- fail_on_exhausted = getattr(context.scene, 'trellis2_artifact_fail_on_exhausted', False)- if fail_on_exhausted:- error_msg = (- "Mesh artifact check failed after all retries. "- "Generation aborted (Fail if Unresolved is enabled)."- )- print(f"[TRELLIS2] ERROR: {error_msg}")- self.operator._error = error_msg- return {"error": error_msg}- print(f"[TRELLIS2] WARNING: {warning_msg}")- self.operator._warning = warning_msgreturn resultfinally:- # Restore the original seed so the UI isn't silently changed- context.scene.trellis2_seed = original_seedself._flush_comfyui_vram(server_address, label="Post-generation")self._cleanup_trellis2_temp_files()@@ -2571,7 +2203,7 @@ class WorkflowManager:# Raw mesh — max faces, no remeshprompt[NODES['simplify']]["inputs"]["target_face_count"] = 5000000prompt[NODES['simplify']]["inputs"]["remesh"] = False- prompt[NODES['simplify']]["inputs"]["fill_holes"] = scene.trellis2_fill_holes+ prompt[NODES['simplify']]["inputs"]["fill_holes"] = Falseprompt[NODES['export_trimesh']]["inputs"]["filename_prefix"] = unique_prefixelse:# Configure texture generation