Commit Graph
26 Commits
Author SHA1 Message Date
THE_BEAST\me ecf7472ff5 feat: Update version to 2.5.0 and add MultiLoraCombine class for enhanced LoRA stack management 2026-04-29 10:11:08 -04:00
THE_BEAST\meandCopilot 9ee1a0dd52 Refactor model handling and update placeholder strings
- 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>
2026-04-26 19:55:45 -04:00
THE_BEAST\meandCopilot 8e4c230300 feat: Enhance recipe and prompt management with v2 model slot support and extraction improvements
Co-authored-by: Copilot <copilot@github.com>
2026-04-24 13:33:26 -04:00
THE_BEAST\me 89dc3a4e94 feat: update terminology from Workflow to Recipe across multiple files 2026-04-21 10:22:02 -04:00
THE_BEAST\me cc35c8e4e6 Refactor workflow and prompt extraction nodes for Recipe compatibility
- 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.
2026-04-21 09:33:09 -04:00
THE_BEAST\me 1fb0d3dcc7 feat: Add denoise parameter to sampler settings across workflow components
- 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.
2026-04-19 13:19:47 -04:00
THE_BEAST\me bdb1cc4212 feat: Enhance resolution extraction and media dimension handling in PromptExtractor and WorkflowExtractionUtils 2026-04-17 10:39:24 -04:00
THE_BEAST\me cbc0efa839 feat: Enhance model handling by normalizing family selection and improving resolution extraction 2026-04-17 05:44:17 -04:00
THE_BEAST\me 3d72e8b4ff feat: Enhance Workflow Model Loader with GGUF support and improved model handling
- 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.
2026-04-16 01:36:22 -04:00
THE_BEAST\me 5dd666fe3a Enhance workflow prompt extraction and model listing
- 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.
2026-04-15 23:50:55 -04:00
THE_BEAST\me 24f6f8ad65 feat: Enhance workflow model loading and sampler parameter extraction
- 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.
2026-04-15 01:18:57 -04:00
THE_BEAST\me 3906e87e19 feat: Enhance model compatibility checks and default value handling for VAE/CLIP in workflow processing 2026-04-14 01:12:14 -04:00
THE_BEAST\me 7eb21c918a feat: Add Test Render Functions and Workflow Model Loader
- 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.
2026-04-13 00:19:21 -04:00
THE_BEAST\me a950ebfa92 Refactor workflow handling and model loading
- 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.
2026-04-12 13:27:51 -04:00
THE_BEAST\me a1c496ed4c feat: add WorkflowRenderer for render-only node functionality
- 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.
2026-04-12 10:21:37 -04:00
FranckyB cf11bfc9d0 fix: split steps_high/low in wf_data for wan_video; don't overwrite model_a override in onFamilyChanged 2026-04-11 23:36:42 +00:00
FranckyB 7be4ea4748 fix: WAN i2v dual-sampler steps split, frame count as length, source image forwarding, add template print
- 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
2026-04-11 22:24:14 +00:00
FranckyB 8cbe4943a1 feat: add Seed B for WAN Video dual-sampler (high/low pass get independent seeds)
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
2026-04-11 21:52:07 +00:00
FranckyB 09597becc5 fix: PE now reports real source dimensions; propagate node-ref flags through wf_data
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.
2026-04-11 21:44:34 +00:00
FranckyB 0fa7eec08d fix: use source_image dimensions as fallback when template uses node-refs for size
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.
2026-04-11 21:37:54 +00:00
FranckyB 3df92b0509 fix: resolve node-ref lists in extract_resolution for i2v/flux2 templates
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
2026-04-11 21:25:33 +00:00
FranckyBandClaude Opus 4.6 e4d58e59ee feat: detect family from clip_type/loader_type in workflow_data
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-11 20:53:25 +00:00
THE_BEAST\me ec4cf272ce feat: enhance prompt extraction and workflow generation with A1111 parameter mapping and embedded data handling 2026-04-11 06:48:59 -04:00
THE_BEAST\me 2e195cfa01 feat: implement update functionality to pull data from connected sources in WorkflowGenerator 2026-04-11 04:26:08 -04:00
THE_BEAST\me 1c12d99a33 Add LoRA utility functions for fuzzy matching and path 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.
2026-04-10 22:42:49 -04:00
THE_BEAST\me 173b2aceed feat: add workflow extraction utilities for ComfyUI Prompt Manager
- 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.
2026-04-10 17:48:05 -04:00