Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

ComfyUI-PainterI2VforKJ

此节点是从KJ的wanimagetovideo节点修改而来,感谢KJ🙏

Wan2.2 图生视频增强节点-KJ工作流专用,专门针对4步LoRA(如 lightx2v)的慢动作问题进行优化。

🛠 解决的问题

  • ✅ 1.减少慢动作:提升运动幅度 15-50%

  • ✅ 2.增强运镜:让运镜提示词更听话,运镜幅度更大

    和wan2.2-KJ节点效果对比

图1图2图3
motion_amplitude=1.15motion_amplitude=1.15motion_amplitude=1.2
图4图5图6
motion_amplitude=1.2motion_amplitude=1.3motion_amplitude=1.2

以上视频对比效果,我是使用wan2.2官方模型+light2v 4步i2v lora V1.0做的测试(见下图),其他模型使用效果有待各位自行测试

我使用的模型和lora

节点特点

  • 单帧输入优化:专为wan2.2单帧图生视频设计
  • 即插即用:完全兼容原版 Wan2.2 工作流

📦 安装

方法 1: ComfyUI Manager(推荐)

  1. 打开 ComfyUI Manager
  2. 搜索 PainterI2VforKJ
  3. 点击安装

方法 2: 手动安装

# 进入ComfyUI的custom_nodes目录
cd ComfyUI/custom_nodes

# 克隆仓库
git clone https://github.com/princepainter/ComfyUI-PainterI2VforKJ.git

重启ComfyUI

💡 使用方法

替换节点

在工作流中将 WanImageToVideo 替换为 PainterI2VforKJ 替换原节点

参数设置

  • motion_amplitude: 1.15(推荐起始值)
  • 其他参数与原版保持一致

场景参数推荐

运动类型推荐参数示例提示词
快速(跑步 / 跳跃)1.25–1.35"快速向前奔跑"
正常(走路 / 挥手)1.10–1.20"流畅地行走"
动态增强1.00–1.10"略微增强动态和运镜"

提示词优化

  • 明确描述运动节奏,如 “快速奔跑”、“流畅行走”
  • 避免模糊描述如 “移动”、“走动”

🔬 技术细节

参数值运动提升亮度变化适用场景
1.0(原版)0%无和WAN原版节点无区别
1.15(默认)+15%无通用场景
1.3+30%无体育运动
1.5+50%无极限运动

核心算法原理

  • 亮度保护的运动缩放:放大运动向量前分离亮度均值
  • 零 latent 初始化:严格保持 4 步 LoRA 的时序依赖链
  • 参考帧增强:使用 reference_latents 保持主体一致性,不约束运动

⚡ 进阶技巧

  • 最佳效果:配合强运动提示词使用
  • 运动过快:每次减少 motion_amplitude 0.05
  • 仍然偏慢:可适当增大到 1.4

🙏 致谢

  • Wan2.2 团队:提供惊人的视频生成模型

  • ComfyUI 社区:灵活的节点系统
    🙏如果这个项目对你有帮助,请给颗星 ⭐️ 支持一下!

  • ComfyUI-Painterl2V

This node is modified from KJ's wanimagetovideo node. Thanks to KJ 🙏

PainterI2V node that specifically fixes the slow-motion issue in 4-step LoRAs (e.g., lightx2v).KJ wan2.2-i2v workflow dedicated

The comparative effects in the above video are from my test using the official Wan2.2 model + Light2v 4-step I2V LoRA V1.0. The performance of other models awaits your own testing .

🛠 Problems Solved

  • ✅ Reduces Slow-Motion Drag: Increases motion amplitude by 15-50%
  • ✅ Enhance camera movement: Make the camera movement prompts more responsive and increase the movement amplitude.
  • ✅ Optimized for Single Frame: Designed specifically for single-frame image-to-video workflows
  • ✅ Plug & Play: Fully compatible with original Wan2.2 workflows

📦 Installation

Method 1: ComfyUI Manager (Recommended)

  1. Open ComfyUI Manager
  2. Search for PainterI2VforKJ
  3. Click Install

Method 2: Manual Installation

# Navigate to ComfyUI's custom_nodes directory
cd ComfyUI/custom_nodes

# Clone the repository
git clone https://github.com/princepainter/ComfyUI-PainterI2VforKJ.git

💡 Usage Guide

Replace the Node

In your workflow, replace WanImageToVideo with PainterI2VforKJ.

Parameter Settings

  • motion_amplitude: 1.15 (recommended starting value)
  • Keep all other parameters consistent with the original node.

Recommended Parameters by Scene

Motion TypeRecommended ValueExample Prompt
Fast (running / jumping)1.25–1.35"Running forward quickly"
Normal (walking / waving)1.10–1.20"Walking smoothly"
Motion Enhancement1.00–1.10"Slightly enhance motion and camera movement"

Prompt Optimization Tips

  • Clearly describe motion rhythm, e.g., “run fast”, “walk smoothly”
  • Avoid vague terms like “move” or “walk around”

🔬 Technical Details

ParameterMotion BoostBrightness ChangeBest For
1.0 (original)0%NoneNo difference from the original WAN node
1.15 (default)+15%NoneGeneral use
1.3+30%NoneSports action
1.5+50%NoneExtreme motion

Core Algorithm Principles

  • Brightness-Protected Motion Scaling: Separates luminance mean before scaling motion vectors
  • Zero Latent Initialization: Strictly preserves the temporal dependency chain required by 4-step LoRAs
  • Reference Frame Enhancement: Uses reference_latents to maintain subject consistency without constraining motion

⚡ Advanced Tips

  • Best results: Use with strong motion-related prompts
  • Motion too fast? Reduce motion_amplitude by 0.05 increments
  • Still too slow? Try increasing up to 1.4

🙏 Acknowledgements

  • Wan2.2 Team: For the amazing video generation model
  • ComfyUI Community: For the flexible node system
  • Contributors & testers: For helping refine this node
If you find this project helpful, please give it a star ⭐ to show your support!
# Restart ComfyUI

关于 About

KJ wan2.2-i2v workflow dedicated:An enhanced Wan2.2 Image-to-Video node specifically designed to fix the slow-motion issue in 4-step LoRAs (like lightx2v).

语言 Languages

Python100.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
20
Total Commits
峰值: 17次/周
Less
More

核心贡献者 Contributors