- Simplified model slot normalization by removing unnecessary parameters and checks.
- Updated the logic for determining primary and secondary model slots in the workflow builder.
- Changed placeholder strings from '(from checkpoint)' to '(Default)' across various modules for consistency.
- Removed the WAN-specific builder class and adjusted the multi-slot builder to handle model slots more effectively.
- Enhanced the extraction utilities to ensure proper handling of VAE and CLIP information.
Co-authored-by: Copilot <copilot@github.com>
- Updated node types in workflow_builder_simple.json to replace WorkflowGenerator with RecipeExtractor and RecipeBuilder.
- Modified prompt_extractor.py to include RecipeExtractor and RecipeRenderer in prompt handling logic.
- Enhanced workflow_extraction_utils.py to support Recipe nodes alongside Workflow nodes for embedded data extraction.
- Ensured backward compatibility with legacy WorkflowGenerator while transitioning to Recipe-based workflows.
- Introduced 'denoise' parameter in workflow_builder.js, workflow_bridge.py, and workflow_renderer.py to enhance rendering control.
- Updated prompt_extractor.py to include default denoise value in extracted workflow data.
- Modified workflow_extraction_utils.py to handle denoise parameter during extraction and building of sampler dictionaries.
- Ensured denoise parameter is properly managed in various functions to maintain consistency across the workflow.
- Added GGUF model loading capabilities to the WorkflowModelLoader.
- Updated WorkflowRenderer to include WORKFLOW_DATA in return types.
- Removed redundant versioning from workflow extraction utility.
- Deleted obsolete workflow model loader test file.
- Introduced a new JavaScript extension for visualizing loaded models in the UI.
- Improved model resolution and loading logic for checkpoints and diffusion models.
- Enhanced error handling and user feedback for missing models and assets.
- Updated prompt extraction logic to include WorkflowBuilder as a source of extracted data, prioritizing it appropriately alongside WorkflowRenderer and WorkflowGenerator.
- Modified the UI response of PromptExtractor and WorkflowExtractor to prevent displaying preview images in Comfy history/tasks, ensuring cleaner output.
- Improved model listing API to support a 'show_all' query parameter, allowing users to retrieve all models or only compatible ones based on the specified family.
- Enhanced fallback mechanisms for model retrieval to accommodate installations with inconsistent folder structures, ensuring better compatibility and user experience.
- Added IS_CHANGED method in WorkflowRenderer to provide a stable fingerprint for workflow data, optimizing re-execution.
- Updated sampler parameter extraction to support new 'steps_a' and 'steps_b' keys, replacing legacy 'steps' handling.
- Refactored workflow extraction utilities to accommodate dual-sampler configurations and removed deprecated parameters.
- Introduced WorkflowGetModel node for streamlined model loading, supporting GGUF format and improved error handling.
- Enhanced model compatibility listing with keyword-based sorting for better user experience.
- Implemented a self-contained test node for rendering functions that auto-discovers compatible models, VAE, and CLIP, and runs the render pipeline, outputting IMAGE, LATENT, and a report.
- Created a Workflow Model Loader to load MODEL, CLIP, and VAE from workflow_data names, optimizing model loading with caching to prevent redundant operations.
- Introduced a new workflow renderer script to set initial node sizes for better UI alignment.
- Removed the prompt_model_loader.py file as its functionality is now integrated into workflow_context.py.
- Updated workflow_builder.py to use seed_a instead of seed for sampler parameters.
- Changed category from "FBnodes" to "Prompt Manager" in workflow_builder.py and workflow_renderer.py.
- Enhanced workflow extraction utilities to support seed_a and seed_b for dual-sampler configurations.
- Introduced workflow_context.py to manage unpacking and repacking of workflow_data, including model loading and parameter overrides.
- Implemented WorkflowRenderer class to handle rendering from WORKFLOW_DATA.
- Supports model loading, sampling, decoding, and output of IMAGE and LATENT.
- Integrated optional GGUF support for enhanced model handling.
- Added error handling for model and VAE loading.
- Introduced patching mechanism for template-driven workflows.
- Enhanced logging for better traceability during execution.
- Bug 1: Split total steps evenly between high/low samplers using
ceil/floor instead of sending the same value to both
- Bug 2: Extract WanImageToVideo batch_size as frame length (not
batch_size), keep batch_size=1 for video workflows; add latent_length
mapping to i2v map JSON
- Bug 3: Save source_image tensor to disk and patch LoadImage node in
i2v template so the source image is forwarded to WanImageToVideo
- Bug 4: Print template name, family, strategy, and file path at the
start of execute_template() for easier debugging
WAN Video uses two KSamplerAdvanced nodes (high-pass + low-pass). Previously
both got the same seed value, and extract_sampler_params was returning the
first node it found — the second seed was inaccessible.
Changes:
- extract_sampler_params: collect all KSamplerAdvanced nodes instead of
returning on first match; expose second node seed as 'seed_b' (None if
only one node found)
- All seed values are guarded against node-ref lists (isinstance list check)
- build_simplified_workflow_data: includes seed_b in sampler output
- workflow_generator.py (wf_data path): reads seed_b from wf_sampler
- execute(): passes seed_b into patch_params; if seed_b is None for a
wan_video strategy, falls back to seed (same value for both samplers)
- patch_template: ksampler_high_seed gets seed, ksampler_low_seed gets
seed_b (falling back to seed if None)
- JS: Seed B row added (hidden by default, shown for WAN Video); Seed row
label renamed to 'Seed A' when WAN Video is active; seed_b synced,
applied, and deleted in wfOn mode; _onExecutedSeed applies control mode
(randomize/increment/decrement) to both seeds independently
Problems:
1. PE showed 512x512 for i2v video — extract_resolution resolved node-refs to
the ImageResizeKJv2 *input* params (512x512 target), not the actual output.
2. _from_node_ref flags were stripped when building workflow_data JSON output,
so WorkflowGenerator never saw them from the wf_data path.
3. Defensive guard against list-typed sampler scalars (seed, steps, cfg) that
could arrive via corrupt override_data JSON.
Fixes:
- prompt_extractor.py: after extract_resolution(), if _from_node_ref is set
OR resolution is still the bare 512x512 default, overwrite with actual
image_tensor dimensions (already extracted as the preview frame).
Applies to any source — videos, images, any file type.
- workflow_extraction_utils.py (build_simplified_workflow_data): propagate
_width_from_node_ref / _height_from_node_ref into the output resolution
dict so downstream WorkflowGenerator can use source_image dims.
- workflow_generator.py (wf_data path): pass _from_node_ref flags through
when building extracted['resolution'] from wf_data.
- workflow_generator.py (sampler_params): guard against list-typed seed/steps/
cfg values coming through overrides or extracted sampler dict.
Templates like wan_video_i2v wire WanImageToVideo width/height to the output
of an ImageResizeKJv2 node — these are runtime values, not stored in the JSON.
extract_resolution reads the resize node's *input* params (512x512) which is
the resize target, not the actual output size.
Fix: extract_resolution now sets _width_from_node_ref / _height_from_node_ref
flags when width/height are node references. execute() checks these flags and,
when the user hasn't set an explicit UI override, reads actual dimensions from
the source_image tensor shape ([B, H, W, C]) instead. This correctly handles
i2v (and any future template) where the output size tracks the input image.
WanImageToVideo (i2v) and EmptyFlux2LatentImage (flux2) store width/height
as node references (['node_id', output_slot]) instead of scalar ints, because
they're wired to upstream ImageResizeKJv2 / PrimitiveInt nodes. This caused:
TypeError: int() argument must be a string... not 'list'
Fixes:
- extract_resolution (prompt_data path): resolve node-ref lists by looking up
the referenced node in prompt_data (handles PrimitiveInt 'value' field and
ImageResizeKJv2 width/height fields)
- batch_size in WanImageToVideo equals 'length' frames (640) — clamp to 1
when > 64 to avoid nonsensical batch sizes
- Add EmptyHunyuanLatentVideo to VIDEO_LATENT_TYPES (wan_video_t2v uses it)
- execute(): add _to_int() defensive helper as safety net for any edge cases
that slip through extract_resolution
- Implemented functions to retrieve available LoRA files and normalize path separators.
- Added fuzzy matching logic to handle renamed LoRAs and WAN-related tokens.
- Created functions to strip file extensions, normalize names, and resolve LoRA paths.
- Enhanced compatibility with ComfyUI's folder structure for loading LoRAs.
- Implemented shared extraction helpers for sampler parameters, VAE info, CLIP info, resolution, and model resolution.
- Added functions to extract sampler parameters, VAE loader information, CLIP loader information, and image/video resolution.
- Introduced model name resolution functions for models, VAEs, and CLIPs.
- Created a comprehensive extraction function to gather all generation parameters from various file types.
- Included a function to enrich extraction results with availability flags for LoRAs, models, VAE, and CLIP.
- Built a simplified workflow data structure for use in WorkflowGenerator and PromptExtractor nodes.