3 Commits
Author SHA1 Message Date
lehie 4614bd227f feat: Add string_to_seed deprecation fix
New feature:
- Added fix_string_to_seed parameter (default: True)
- Automatically patches WanVideoWrapper utils.py
- Updates string_to_seed import from comfy.model_patcher to comfy.utils
- Eliminates deprecation warnings during LoRA merging

How it works:
- Finds WanVideoWrapper utils module in sys.modules
- Replaces string_to_seed with new import from comfy.utils
- Fallback handling for older ComfyUI versions
- Zero code changes to original WanVideoWrapper

Benefits:
- One node fixes TWO compatibility issues
- Clean console output (no warnings)
- Non-invasive runtime patching
- Backward compatible
2026-02-01 22:04:07 +07:00
lehie e08df21335 fix: Dynamic WanVideoModel import for ComfyUI compatibility
Issue:
- Hardcoded import path failed in ComfyUI environment
- 'from ComfyUI.custom_nodes...' is invalid syntax

Fix:
- Search sys.modules for already-loaded WanVideoWrapper
- Fallback to dynamic importlib.util file loading
- Multiple import strategies for robustness

Now works in all ComfyUI environments
2026-02-01 21:48:55 +07:00
lehie 818092443d feat: Initial release - PyTorch 2.10 compatibility patcher for WanVideoModel
Features:
- PyTorch210CompatibilityPatcher node
  * Auto-detects PyTorch version
  * Monkey-patches WanVideoModel for 2.10+ compatibility
  * Zero overhead, reusable across workflows

- PyTorchVersionChecker node
  * Shows PyTorch/CUDA versions
  * Indicates if patch is needed

Technical:
- Uses nn.Identity() placeholder for diffusion_model
- Satisfies PyTorch 2.10's stricter attribute checking
- Compatible with PyTorch 2.9.0 and 2.10.0+
- No modifications to original WanVideoWrapper code

Performance:
- Zero runtime overhead
- Get 8-13% speedup from PyTorch 2.10 improvements
- Same performance as native code

Use case:
- Google Colab A100 80GB
- WanVideo 2.1, 2.2, 2.2 Animate models
2026-02-01 21:41:58 +07:00