Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
ComfyUI-MimicMotionWrapper
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
王骏浩
ComfyUI-MimicMotionWrapper
Commits
9273ae84
提交
9273ae84
authored
7月 02, 2024
作者:
kijai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update example
上级
4fe892a7
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
326 行增加
和
455 行删除
+326
-455
mimic_motion_example_02.json
examples/mimic_motion_example_02.json
+324
-454
nodes.py
nodes.py
+2
-1
没有找到文件。
examples/mimic_motion_example_02.json
浏览文件 @
9273ae84
{
"last_node_id"
:
5
1
,
"last_link_id"
:
1
28
,
"last_node_id"
:
5
4
,
"last_link_id"
:
1
39
,
"nodes"
:
[
{
"id"
:
42
,
"type"
:
"
MimicMotionGetPoses
"
,
"id"
:
51
,
"type"
:
"
Note
"
,
"pos"
:
[
327
,
702
766
,
105
],
"size"
:
{
"0"
:
330
,
"1"
:
126
"0"
:
290.1233825683594
,
"1"
:
69.71562957763672
},
"flags"
:
{},
"order"
:
9
,
"order"
:
0
,
"mode"
:
0
,
"inputs"
:
[
{
"name"
:
"ref_image"
,
"type"
:
"IMAGE"
,
"link"
:
110
},
{
"name"
:
"pose_images"
,
"type"
:
"IMAGE"
,
"link"
:
111
}
],
"outputs"
:
[
{
"name"
:
"poses_with_ref"
,
"type"
:
"IMAGE"
,
"links"
:
[
112
,
114
],
"shape"
:
3
,
"slot_index"
:
0
},
{
"name"
:
"pose_images"
,
"type"
:
"IMAGE"
,
"links"
:
[
113
],
"shape"
:
3
,
"slot_index"
:
1
}
],
"properties"
:
{
"
Node name for S&R"
:
"MimicMotionGetPoses
"
"
text"
:
"
"
},
"widgets_values"
:
[
true
,
true
,
true
]
},
{
"id"
:
35
,
"type"
:
"ImageResizeKJ"
,
"pos"
:
[
-75
,
781
],
"size"
:
{
"0"
:
315
,
"1"
:
242
},
"flags"
:
{},
"order"
:
7
,
"mode"
:
0
,
"inputs"
:
[
{
"name"
:
"image"
,
"type"
:
"IMAGE"
,
"link"
:
86
},
{
"name"
:
"get_image_size"
,
"type"
:
"IMAGE"
,
"link"
:
null
},
{
"name"
:
"width_input"
,
"type"
:
"INT"
,
"link"
:
88
,
"widget"
:
{
"name"
:
"width_input"
}
},
{
"name"
:
"height_input"
,
"type"
:
"INT"
,
"link"
:
89
,
"widget"
:
{
"name"
:
"height_input"
}
}
],
"outputs"
:
[
{
"name"
:
"IMAGE"
,
"type"
:
"IMAGE"
,
"links"
:
[
111
],
"shape"
:
3
,
"slot_index"
:
0
},
{
"name"
:
"width"
,
"type"
:
"INT"
,
"links"
:
null
,
"shape"
:
3
},
{
"name"
:
"height"
,
"type"
:
"INT"
,
"links"
:
null
,
"shape"
:
3
}
"Downloads MimicMotion model and fp16 version of SVD XT 1.1"
],
"properties"
:
{
"Node name for S&R"
:
"ImageResizeKJ"
},
"widgets_values"
:
[
576
,
1024
,
"lanczos"
,
false
,
64
,
0
,
0
]
"color"
:
"#432"
,
"bgcolor"
:
"#653"
},
{
"id"
:
9
,
"type"
:
"GetImageSizeAndCount"
,
"pos"
:
[
82
6
,
5
05
82
5
,
5
18
],
"size"
:
{
"0"
:
210
,
"1"
:
86
},
"flags"
:
{},
"order"
:
10
,
"order"
:
7
,
"mode"
:
0
,
"inputs"
:
[
{
...
...
@@ -168,13 +57,13 @@
"slot_index"
:
0
},
{
"name"
:
"
576
width"
,
"name"
:
"
1024
width"
,
"type"
:
"INT"
,
"links"
:
null
,
"shape"
:
3
},
{
"name"
:
"
1024
height"
,
"name"
:
"
576
height"
,
"type"
:
"INT"
,
"links"
:
null
,
"shape"
:
3
...
...
@@ -190,177 +79,6 @@
"Node name for S&R"
:
"GetImageSizeAndCount"
}
},
{
"id"
:
37
,
"type"
:
"VHS_VideoCombine"
,
"pos"
:
[
723
,
819
],
"size"
:
{
"0"
:
440
,
"1"
:
218
},
"flags"
:
{},
"order"
:
11
,
"mode"
:
0
,
"inputs"
:
[
{
"name"
:
"images"
,
"type"
:
"IMAGE"
,
"link"
:
114
},
{
"name"
:
"audio"
,
"type"
:
"VHS_AUDIO"
,
"link"
:
null
},
{
"name"
:
"meta_batch"
,
"type"
:
"VHS_BatchManager"
,
"link"
:
null
}
],
"outputs"
:
[
{
"name"
:
"Filenames"
,
"type"
:
"VHS_FILENAMES"
,
"links"
:
null
,
"shape"
:
3
}
],
"properties"
:
{
"Node name for S&R"
:
"VHS_VideoCombine"
},
"widgets_values"
:
{
"frame_rate"
:
8
,
"loop_count"
:
0
,
"filename_prefix"
:
"MimicPose"
,
"format"
:
"image/webp"
,
"pingpong"
:
false
,
"save_output"
:
false
,
"videopreview"
:
{
"hidden"
:
false
,
"paused"
:
false
,
"params"
:
{
"filename"
:
"MimicPose_00001.webp"
,
"subfolder"
:
""
,
"type"
:
"temp"
,
"format"
:
"image/webp"
}
}
}
},
{
"id"
:
28
,
"type"
:
"ImageResizeKJ"
,
"pos"
:
[
-71
,
481
],
"size"
:
{
"0"
:
315
,
"1"
:
242
},
"flags"
:
{},
"order"
:
5
,
"mode"
:
0
,
"inputs"
:
[
{
"name"
:
"image"
,
"type"
:
"IMAGE"
,
"link"
:
61
},
{
"name"
:
"get_image_size"
,
"type"
:
"IMAGE"
,
"link"
:
null
},
{
"name"
:
"width_input"
,
"type"
:
"INT"
,
"link"
:
null
,
"widget"
:
{
"name"
:
"width_input"
}
},
{
"name"
:
"height_input"
,
"type"
:
"INT"
,
"link"
:
null
,
"widget"
:
{
"name"
:
"height_input"
}
}
],
"outputs"
:
[
{
"name"
:
"IMAGE"
,
"type"
:
"IMAGE"
,
"links"
:
[
95
,
110
],
"shape"
:
3
,
"slot_index"
:
0
},
{
"name"
:
"width"
,
"type"
:
"INT"
,
"links"
:
[
88
],
"shape"
:
3
,
"slot_index"
:
1
},
{
"name"
:
"height"
,
"type"
:
"INT"
,
"links"
:
[
89
],
"shape"
:
3
,
"slot_index"
:
2
}
],
"properties"
:
{
"Node name for S&R"
:
"ImageResizeKJ"
},
"widgets_values"
:
[
576
,
1024
,
"lanczos"
,
false
,
64
,
0
,
0
]
},
{
"id"
:
49
,
"type"
:
"PreviewImage"
,
"pos"
:
[
290
,
251
],
"size"
:
{
"0"
:
210
,
"1"
:
246
},
"flags"
:
{},
"order"
:
8
,
"mode"
:
0
,
"inputs"
:
[
{
"name"
:
"images"
,
"type"
:
"IMAGE"
,
"link"
:
125
}
],
"properties"
:
{
"Node name for S&R"
:
"PreviewImage"
}
},
{
"id"
:
2
,
"type"
:
"DownloadAndLoadMimicMotionModel"
,
...
...
@@ -370,10 +88,10 @@
],
"size"
:
{
"0"
:
315
,
"1"
:
82
"1"
:
106
},
"flags"
:
{},
"order"
:
0
,
"order"
:
1
,
"mode"
:
0
,
"outputs"
:
[
{
...
...
@@ -390,68 +108,23 @@
},
"widgets_values"
:
[
"MimicMotion-fp16.safetensors"
,
"fp16"
"fp16"
,
false
]
},
{
"id"
:
50
,
"type"
:
"Note"
,
"pos"
:
[
281
,
104
],
"size"
:
{
"0"
:
293.7375183105469
,
"1"
:
101.26885986328125
},
"flags"
:
{},
"order"
:
1
,
"mode"
:
0
,
"properties"
:
{
"text"
:
""
},
"widgets_values"
:
[
"ref_image needs to be 224x224 for clip_vision
\n
default seems to be just resizing, you can try other methods like cropping as well"
],
"color"
:
"#432"
,
"bgcolor"
:
"#653"
},
{
"id"
:
51
,
"type"
:
"Note"
,
"pos"
:
[
779
,
105
],
"size"
:
{
"0"
:
290.1233825683594
,
"1"
:
69.71562957763672
},
"flags"
:
{},
"order"
:
2
,
"mode"
:
0
,
"properties"
:
{
"text"
:
""
},
"widgets_values"
:
[
"Downloads MimicMotion model and fp16 version of SVD XT 1.1"
],
"color"
:
"#432"
,
"bgcolor"
:
"#653"
},
{
"id"
:
17
,
"type"
:
"ImageConcatMulti"
,
"pos"
:
[
1
186
,
774
1
212
,
865
],
"size"
:
{
"0"
:
210
,
"1"
:
1
7
0
"1"
:
1
9
0
},
"flags"
:
{},
"order"
:
1
3
,
"order"
:
1
0
,
"mode"
:
0
,
"inputs"
:
[
{
...
...
@@ -462,12 +135,17 @@
{
"name"
:
"image_2"
,
"type"
:
"IMAGE"
,
"link"
:
1
13
"link"
:
1
37
},
{
"name"
:
"image_3"
,
"type"
:
"IMAGE"
,
"link"
:
99
"link"
:
138
},
{
"name"
:
"image_4"
,
"type"
:
"IMAGE"
,
"link"
:
139
}
],
"outputs"
:
[
...
...
@@ -483,106 +161,142 @@
],
"properties"
:
{},
"widgets_values"
:
[
3
,
4
,
"right"
,
false
,
null
]
},
{
"id"
:
48
,
"type"
:
"
ImageResizeKJ
"
,
"id"
:
37
,
"type"
:
"
VHS_VideoCombine
"
,
"pos"
:
[
-57
,
170
653
,
958
],
"size"
:
[
440
,
468.25
],
"flags"
:
{},
"order"
:
8
,
"mode"
:
0
,
"inputs"
:
[
{
"name"
:
"images"
,
"type"
:
"IMAGE"
,
"link"
:
114
},
{
"name"
:
"audio"
,
"type"
:
"VHS_AUDIO"
,
"link"
:
null
},
{
"name"
:
"meta_batch"
,
"type"
:
"VHS_BatchManager"
,
"link"
:
null
}
],
"outputs"
:
[
{
"name"
:
"Filenames"
,
"type"
:
"VHS_FILENAMES"
,
"links"
:
null
,
"shape"
:
3
}
],
"properties"
:
{
"Node name for S&R"
:
"VHS_VideoCombine"
},
"widgets_values"
:
{
"frame_rate"
:
8
,
"loop_count"
:
0
,
"filename_prefix"
:
"MimicPose"
,
"format"
:
"image/webp"
,
"pingpong"
:
false
,
"save_output"
:
false
,
"videopreview"
:
{
"hidden"
:
false
,
"paused"
:
false
,
"params"
:
{
"filename"
:
"MimicPose_00001.webp"
,
"subfolder"
:
""
,
"type"
:
"temp"
,
"format"
:
"image/webp"
}
}
}
},
{
"id"
:
42
,
"type"
:
"MimicMotionGetPoses"
,
"pos"
:
[
327
,
702
],
"size"
:
{
"0"
:
3
15
,
"1"
:
242
"0"
:
3
30
,
"1"
:
126
},
"flags"
:
{},
"order"
:
6
,
"mode"
:
0
,
"inputs"
:
[
{
"name"
:
"image"
,
"name"
:
"
ref_
image"
,
"type"
:
"IMAGE"
,
"link"
:
1
24
"link"
:
1
10
},
{
"name"
:
"
get_image_size
"
,
"name"
:
"
pose_images
"
,
"type"
:
"IMAGE"
,
"link"
:
null
},
{
"name"
:
"width_input"
,
"type"
:
"INT"
,
"link"
:
null
,
"widget"
:
{
"name"
:
"width_input"
}
},
{
"name"
:
"height_input"
,
"type"
:
"INT"
,
"link"
:
null
,
"widget"
:
{
"name"
:
"height_input"
}
"link"
:
111
}
],
"outputs"
:
[
{
"name"
:
"
IMAGE
"
,
"name"
:
"
poses_with_ref
"
,
"type"
:
"IMAGE"
,
"links"
:
[
1
25
,
1
28
1
12
,
1
14
],
"shape"
:
3
,
"slot_index"
:
0
},
{
"name"
:
"width"
,
"type"
:
"INT"
,
"links"
:
[],
"name"
:
"pose_images"
,
"type"
:
"IMAGE"
,
"links"
:
[
138
],
"shape"
:
3
,
"slot_index"
:
1
},
{
"name"
:
"height"
,
"type"
:
"INT"
,
"links"
:
[],
"shape"
:
3
,
"slot_index"
:
2
}
],
"properties"
:
{
"Node name for S&R"
:
"
ImageResizeKJ
"
"Node name for S&R"
:
"
MimicMotionGetPoses
"
},
"widgets_values"
:
[
224
,
224
,
"lanczos"
,
false
,
64
,
0
,
0
true
,
true
,
true
]
},
{
"id"
:
16
,
"type"
:
"VHS_VideoCombine"
,
"pos"
:
[
148
2
,
192
148
3
,
95
],
"size"
:
[
1530.4949951171875
,
1199.1081452546296
2861.6603258383248
,
703.6084833210144
],
"flags"
:
{},
"order"
:
1
4
,
"order"
:
1
1
,
"mode"
:
0
,
"inputs"
:
[
{
...
...
@@ -613,7 +327,7 @@
"Node name for S&R"
:
"VHS_VideoCombine"
},
"widgets_values"
:
{
"frame_rate"
:
8
,
"frame_rate"
:
12
,
"loop_count"
:
0
,
"filename_prefix"
:
"MimicMotion"
,
"format"
:
"video/h264-mp4"
,
...
...
@@ -626,7 +340,7 @@
"hidden"
:
false
,
"paused"
:
false
,
"params"
:
{
"filename"
:
"MimicMotion_000
05
.mp4"
,
"filename"
:
"MimicMotion_000
10
.mp4"
,
"subfolder"
:
""
,
"type"
:
"temp"
,
"format"
:
"video/h264-mp4"
...
...
@@ -646,15 +360,14 @@
"1"
:
410.70074462890625
},
"flags"
:
{},
"order"
:
3
,
"order"
:
2
,
"mode"
:
0
,
"outputs"
:
[
{
"name"
:
"IMAGE"
,
"type"
:
"IMAGE"
,
"links"
:
[
61
,
124
61
],
"shape"
:
3
,
"slot_index"
:
0
...
...
@@ -670,7 +383,7 @@
"Node name for S&R"
:
"LoadImage"
},
"widgets_values"
:
[
"
2bc567e9f448176b4e2416ceebf9beab.pn
g"
,
"
demo1.jp
g"
,
"image"
]
},
...
...
@@ -686,7 +399,7 @@
658.5777723524305
],
"flags"
:
{},
"order"
:
4
,
"order"
:
3
,
"mode"
:
0
,
"inputs"
:
[
{
...
...
@@ -733,25 +446,190 @@
"force_size"
:
"Disabled"
,
"custom_width"
:
512
,
"custom_height"
:
512
,
"frame_load_cap"
:
1
6
,
"frame_load_cap"
:
1
5
,
"skip_first_frames"
:
0
,
"select_every_nth"
:
3
,
"select_every_nth"
:
2
,
"choose video to upload"
:
"image"
,
"videopreview"
:
{
"hidden"
:
false
,
"paused"
:
false
,
"params"
:
{
"frame_load_cap"
:
1
6
,
"frame_load_cap"
:
1
5
,
"skip_first_frames"
:
0
,
"force_rate"
:
0
,
"filename"
:
"pose1.mp4"
,
"type"
:
"input"
,
"format"
:
"video/mp4"
,
"select_every_nth"
:
3
"select_every_nth"
:
2
}
}
}
},
{
"id"
:
35
,
"type"
:
"ImageResizeKJ"
,
"pos"
:
[
-75
,
781
],
"size"
:
{
"0"
:
315
,
"1"
:
242
},
"flags"
:
{},
"order"
:
5
,
"mode"
:
0
,
"inputs"
:
[
{
"name"
:
"image"
,
"type"
:
"IMAGE"
,
"link"
:
86
},
{
"name"
:
"get_image_size"
,
"type"
:
"IMAGE"
,
"link"
:
null
},
{
"name"
:
"width_input"
,
"type"
:
"INT"
,
"link"
:
88
,
"widget"
:
{
"name"
:
"width_input"
}
},
{
"name"
:
"height_input"
,
"type"
:
"INT"
,
"link"
:
89
,
"widget"
:
{
"name"
:
"height_input"
}
}
],
"outputs"
:
[
{
"name"
:
"IMAGE"
,
"type"
:
"IMAGE"
,
"links"
:
[
111
,
137
],
"shape"
:
3
,
"slot_index"
:
0
},
{
"name"
:
"width"
,
"type"
:
"INT"
,
"links"
:
null
,
"shape"
:
3
},
{
"name"
:
"height"
,
"type"
:
"INT"
,
"links"
:
null
,
"shape"
:
3
}
],
"properties"
:
{
"Node name for S&R"
:
"ImageResizeKJ"
},
"widgets_values"
:
[
576
,
1024
,
"lanczos"
,
false
,
64
,
0
,
0
]
},
{
"id"
:
28
,
"type"
:
"ImageResizeKJ"
,
"pos"
:
[
-71
,
481
],
"size"
:
{
"0"
:
315
,
"1"
:
242
},
"flags"
:
{},
"order"
:
4
,
"mode"
:
0
,
"inputs"
:
[
{
"name"
:
"image"
,
"type"
:
"IMAGE"
,
"link"
:
61
},
{
"name"
:
"get_image_size"
,
"type"
:
"IMAGE"
,
"link"
:
null
},
{
"name"
:
"width_input"
,
"type"
:
"INT"
,
"link"
:
null
,
"widget"
:
{
"name"
:
"width_input"
}
},
{
"name"
:
"height_input"
,
"type"
:
"INT"
,
"link"
:
null
,
"widget"
:
{
"name"
:
"height_input"
}
}
],
"outputs"
:
[
{
"name"
:
"IMAGE"
,
"type"
:
"IMAGE"
,
"links"
:
[
95
,
110
,
136
],
"shape"
:
3
,
"slot_index"
:
0
},
{
"name"
:
"width"
,
"type"
:
"INT"
,
"links"
:
[
88
],
"shape"
:
3
,
"slot_index"
:
1
},
{
"name"
:
"height"
,
"type"
:
"INT"
,
"links"
:
[
89
],
"shape"
:
3
,
"slot_index"
:
2
}
],
"properties"
:
{
"Node name for S&R"
:
"ImageResizeKJ"
},
"widgets_values"
:
[
576
,
1024
,
"lanczos"
,
true
,
64
,
0
,
0
]
},
{
"id"
:
1
,
"type"
:
"MimicMotionSampler"
,
...
...
@@ -764,7 +642,7 @@
"1"
:
314
},
"flags"
:
{},
"order"
:
12
,
"order"
:
9
,
"mode"
:
0
,
"inputs"
:
[
{
...
...
@@ -776,7 +654,7 @@
{
"name"
:
"ref_image"
,
"type"
:
"IMAGE"
,
"link"
:
1
28
,
"link"
:
1
36
,
"slot_index"
:
1
},
{
...
...
@@ -790,7 +668,7 @@
"name"
:
"images"
,
"type"
:
"IMAGE"
,
"links"
:
[
9
9
13
9
],
"shape"
:
3
,
"slot_index"
:
0
...
...
@@ -803,10 +681,10 @@
25
,
2
,
2
,
123
,
42
,
"fixed"
,
15
,
0
.02
,
0
,
16
,
6
,
true
...
...
@@ -878,14 +756,6 @@
0
,
"IMAGE"
],
[
99
,
1
,
0
,
17
,
2
,
"IMAGE"
],
[
110
,
28
,
...
...
@@ -910,14 +780,6 @@
0
,
"IMAGE"
],
[
113
,
42
,
1
,
17
,
1
,
"IMAGE"
],
[
114
,
42
,
...
...
@@ -927,27 +789,35 @@
"IMAGE"
],
[
124
,
3
,
0
,
48
,
136
,
28
,
0
,
1
,
1
,
"IMAGE"
],
[
125
,
48
,
0
,
49
,
137
,
35
,
0
,
17
,
1
,
"IMAGE"
],
[
128
,
48
,
0
,
138
,
42
,
1
,
17
,
2
,
"IMAGE"
],
[
139
,
1
,
0
,
17
,
3
,
"IMAGE"
]
],
...
...
@@ -955,10 +825,10 @@
"config"
:
{},
"extra"
:
{
"ds"
:
{
"scale"
:
0.6
830134553650705
,
"scale"
:
0.6
934334949441352
,
"offset"
:
{
"0"
:
839.6274414062
5
,
"1"
:
131.28245544433594
"0"
:
466.3647460937
5
,
"1"
:
44.73270034790039
}
}
},
...
...
nodes.py
浏览文件 @
9273ae84
...
...
@@ -110,7 +110,8 @@ class DownloadAndLoadMimicMotionModel:
pbar
.
update
(
1
)
mimicmotion_models
=
MimicMotionModel
(
svd_path
,
lcm
=
lcm
)
.
to
(
device
=
device
)
.
eval
()
mimicmotion_models
.
load_state_dict
(
comfy
.
utils
.
load_torch_file
(
model_path
),
strict
=
False
)
mimic_motion_sd
=
comfy
.
utils
.
load_torch_file
(
model_path
)
mimicmotion_models
.
load_state_dict
(
mimic_motion_sd
,
strict
=
False
)
if
lcm
:
lcm_noise_scheduler
=
AnimateLCMSVDStochasticIterativeScheduler
(
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论