- Add dry_run boolean parameter to TripleKSamplerWan22LightningAdvanced INPUT_TYPES - Replace ENABLE_DRY_RUN constant with user-configurable UI parameter - Update _run_sampling_stage method to accept dry_run parameter - Pass dry_run parameter through all sampling stage calls - Remove ENABLE_DRY_RUN from constants.py and imports - Update README.md with comprehensive feature documentation: - Add dry run mode section with usage instructions - Update model switching strategies to reflect all 5 options - Add KJNodes compatibility documentation - Update code structure to show inheritance hierarchy - Enhance version history with v0.3.1 changes - Maintain simple node simplicity (no dry run parameter exposed) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
1.2 KiB
Python
29 lines
1.2 KiB
Python
"""
|
|
Configuration constants for ComfyUI-TripleKSampler.
|
|
|
|
This module contains configurable constants that affect the behavior of the
|
|
TripleKSampler nodes. These values can be modified to tune the sampling
|
|
behavior without changing the core implementation.
|
|
"""
|
|
|
|
# Quality threshold for automatic base step calculation
|
|
# This ensures that auto-computed base_steps result in sufficient total sampling
|
|
# steps for good quality output. The formula used is:
|
|
# base_steps = lightning_start * ceil(MIN_TOTAL_STEPS / lightning_steps)
|
|
MIN_TOTAL_STEPS = 20
|
|
|
|
# KJNodes compatibility fix toggle
|
|
# When enabled, applies a temporary monkey-patch to fix KJNodes transformer_options
|
|
# compatibility issue. Disable this once KJNodes is updated to support the parameter.
|
|
# See: https://github.com/kijai/ComfyUI-KJNodes/issues/387
|
|
ENABLE_KJNODES_COMPATIBILITY_FIX = True
|
|
|
|
# Default sigma boundaries for different model types
|
|
# These values are used when sigma boundary-based model switching is enabled
|
|
DEFAULT_BOUNDARY_T2V = 0.875 # Text-to-video models
|
|
DEFAULT_BOUNDARY_I2V = 0.900 # Image-to-video models
|
|
|
|
# Logging configuration
|
|
LOGGER_PREFIX = "[TripleKSampler]"
|
|
LOG_LEVEL = "INFO" # Can be: DEBUG, INFO, WARNING, ERROR
|