exact-railcar commited on
Commit
1a87547
·
verified ·
1 Parent(s): 151f05c

Upload 388 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +171 -0
  2. animate/.editorconfig +34 -0
  3. animate/.gitignore +241 -0
  4. animate/.pre-commit-config.yaml +28 -0
  5. animate/COPYING +13 -0
  6. animate/LICENSE.md +194 -0
  7. animate/MANIFEST.in +2 -0
  8. animate/README.md +925 -0
  9. animate/config/.gitignore +4 -0
  10. animate/config/GroundingDINO/GroundingDINO_SwinB_cfg.py +43 -0
  11. animate/config/GroundingDINO/GroundingDINO_SwinT_OGC.py +43 -0
  12. animate/config/inference/default.json +27 -0
  13. animate/config/inference/motion_sdxl.json +23 -0
  14. animate/config/inference/motion_v2.json +28 -0
  15. animate/config/inference/sd15-unet.json +89 -0
  16. animate/config/inference/sd15-unet3d.json +64 -0
  17. animate/config/prompts/.gitignore +2 -0
  18. animate/config/prompts/01-ToonYou.json +24 -0
  19. animate/config/prompts/02-Lyriel.json +25 -0
  20. animate/config/prompts/03-RcnzCartoon.json +25 -0
  21. animate/config/prompts/04-MajicMix.json +25 -0
  22. animate/config/prompts/05-RealisticVision.json +25 -0
  23. animate/config/prompts/06-Tusun.json +23 -0
  24. animate/config/prompts/07-FilmVelvia.json +26 -0
  25. animate/config/prompts/08-GhibliBackground.json +23 -0
  26. animate/config/prompts/concat_2horizontal.bat +1 -0
  27. animate/config/prompts/copy_png.bat +11 -0
  28. animate/config/prompts/ignore_tokens.txt +4 -0
  29. animate/config/prompts/img2img_sample.json +272 -0
  30. animate/config/prompts/inpaint_sample.json +299 -0
  31. animate/config/prompts/prompt_travel.json +322 -0
  32. animate/config/prompts/prompt_travel_multi_controlnet.json +238 -0
  33. animate/config/prompts/region_sample.json +299 -0
  34. animate/config/prompts/region_sample2.json +299 -0
  35. animate/config/prompts/region_sample3.json +299 -0
  36. animate/config/prompts/region_txt2img.json +324 -0
  37. animate/config/prompts/sample_lcm.json +298 -0
  38. animate/config/prompts/to_8fps_Frames.bat +1 -0
  39. animate/data/.gitignore +5 -0
  40. animate/data/controlnet_image/cat/controlnet_ip2p/00000000.png +3 -0
  41. animate/data/controlnet_image/cat/controlnet_ip2p/00000001.png +3 -0
  42. animate/data/controlnet_image/cat/controlnet_ip2p/00000002.png +3 -0
  43. animate/data/controlnet_image/cat/controlnet_ip2p/00000003.png +3 -0
  44. animate/data/controlnet_image/cat/controlnet_ip2p/00000004.png +3 -0
  45. animate/data/controlnet_image/cat/controlnet_ip2p/00000005.png +3 -0
  46. animate/data/controlnet_image/cat/controlnet_ip2p/00000006.png +3 -0
  47. animate/data/controlnet_image/cat/controlnet_ip2p/00000007.png +3 -0
  48. animate/data/controlnet_image/cat/controlnet_ip2p/00000008.png +3 -0
  49. animate/data/controlnet_image/cat/controlnet_ip2p/00000009.png +3 -0
  50. animate/data/controlnet_image/cat/controlnet_ip2p/00000010.png +3 -0
.gitattributes CHANGED
@@ -33,3 +33,174 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000000.png filter=lfs diff=lfs merge=lfs -text
37
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000001.png filter=lfs diff=lfs merge=lfs -text
38
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000002.png filter=lfs diff=lfs merge=lfs -text
39
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000003.png filter=lfs diff=lfs merge=lfs -text
40
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000004.png filter=lfs diff=lfs merge=lfs -text
41
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000005.png filter=lfs diff=lfs merge=lfs -text
42
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000006.png filter=lfs diff=lfs merge=lfs -text
43
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000007.png filter=lfs diff=lfs merge=lfs -text
44
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000008.png filter=lfs diff=lfs merge=lfs -text
45
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000009.png filter=lfs diff=lfs merge=lfs -text
46
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000010.png filter=lfs diff=lfs merge=lfs -text
47
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000011.png filter=lfs diff=lfs merge=lfs -text
48
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000012.png filter=lfs diff=lfs merge=lfs -text
49
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000013.png filter=lfs diff=lfs merge=lfs -text
50
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000014.png filter=lfs diff=lfs merge=lfs -text
51
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000015.png filter=lfs diff=lfs merge=lfs -text
52
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000016.png filter=lfs diff=lfs merge=lfs -text
53
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000017.png filter=lfs diff=lfs merge=lfs -text
54
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000018.png filter=lfs diff=lfs merge=lfs -text
55
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000019.png filter=lfs diff=lfs merge=lfs -text
56
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000020.png filter=lfs diff=lfs merge=lfs -text
57
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000021.png filter=lfs diff=lfs merge=lfs -text
58
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000022.png filter=lfs diff=lfs merge=lfs -text
59
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000023.png filter=lfs diff=lfs merge=lfs -text
60
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000024.png filter=lfs diff=lfs merge=lfs -text
61
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000025.png filter=lfs diff=lfs merge=lfs -text
62
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000026.png filter=lfs diff=lfs merge=lfs -text
63
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000027.png filter=lfs diff=lfs merge=lfs -text
64
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000028.png filter=lfs diff=lfs merge=lfs -text
65
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000029.png filter=lfs diff=lfs merge=lfs -text
66
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000030.png filter=lfs diff=lfs merge=lfs -text
67
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000031.png filter=lfs diff=lfs merge=lfs -text
68
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000032.png filter=lfs diff=lfs merge=lfs -text
69
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000033.png filter=lfs diff=lfs merge=lfs -text
70
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000034.png filter=lfs diff=lfs merge=lfs -text
71
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000035.png filter=lfs diff=lfs merge=lfs -text
72
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000036.png filter=lfs diff=lfs merge=lfs -text
73
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000037.png filter=lfs diff=lfs merge=lfs -text
74
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000038.png filter=lfs diff=lfs merge=lfs -text
75
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000039.png filter=lfs diff=lfs merge=lfs -text
76
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000040.png filter=lfs diff=lfs merge=lfs -text
77
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000041.png filter=lfs diff=lfs merge=lfs -text
78
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000042.png filter=lfs diff=lfs merge=lfs -text
79
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000043.png filter=lfs diff=lfs merge=lfs -text
80
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000044.png filter=lfs diff=lfs merge=lfs -text
81
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000045.png filter=lfs diff=lfs merge=lfs -text
82
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000046.png filter=lfs diff=lfs merge=lfs -text
83
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000047.png filter=lfs diff=lfs merge=lfs -text
84
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000048.png filter=lfs diff=lfs merge=lfs -text
85
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000049.png filter=lfs diff=lfs merge=lfs -text
86
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000050.png filter=lfs diff=lfs merge=lfs -text
87
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000051.png filter=lfs diff=lfs merge=lfs -text
88
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000052.png filter=lfs diff=lfs merge=lfs -text
89
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000053.png filter=lfs diff=lfs merge=lfs -text
90
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000054.png filter=lfs diff=lfs merge=lfs -text
91
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000055.png filter=lfs diff=lfs merge=lfs -text
92
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000056.png filter=lfs diff=lfs merge=lfs -text
93
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000057.png filter=lfs diff=lfs merge=lfs -text
94
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000058.png filter=lfs diff=lfs merge=lfs -text
95
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000059.png filter=lfs diff=lfs merge=lfs -text
96
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000060.png filter=lfs diff=lfs merge=lfs -text
97
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000061.png filter=lfs diff=lfs merge=lfs -text
98
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000062.png filter=lfs diff=lfs merge=lfs -text
99
+ animate/data/controlnet_image/cat/controlnet_ip2p/00000063.png filter=lfs diff=lfs merge=lfs -text
100
+ animate/data/controlnet_image/test/controlnet_openpose/0000.png filter=lfs diff=lfs merge=lfs -text
101
+ animate/data/controlnet_image/test/controlnet_openpose/0016.png filter=lfs diff=lfs merge=lfs -text
102
+ animate/data/controlnet_image/test/controlnet_openpose/0032.png filter=lfs diff=lfs merge=lfs -text
103
+ animate/data/controlnet_image/test/controlnet_softedge/0000.png filter=lfs diff=lfs merge=lfs -text
104
+ animate/data/controlnet_image/test/controlnet_softedge/0016.png filter=lfs diff=lfs merge=lfs -text
105
+ animate/data/controlnet_image/test/controlnet_softedge/0032.png filter=lfs diff=lfs merge=lfs -text
106
+ animate/data/init_imgs/sample0/00000000.png filter=lfs diff=lfs merge=lfs -text
107
+ animate/data/init_imgs/sample0/00000001.png filter=lfs diff=lfs merge=lfs -text
108
+ animate/data/init_imgs/sample0/00000002.png filter=lfs diff=lfs merge=lfs -text
109
+ animate/data/init_imgs/sample0/00000003.png filter=lfs diff=lfs merge=lfs -text
110
+ animate/data/init_imgs/sample0/00000004.png filter=lfs diff=lfs merge=lfs -text
111
+ animate/data/init_imgs/sample0/00000005.png filter=lfs diff=lfs merge=lfs -text
112
+ animate/data/init_imgs/sample0/00000006.png filter=lfs diff=lfs merge=lfs -text
113
+ animate/data/init_imgs/sample0/00000007.png filter=lfs diff=lfs merge=lfs -text
114
+ animate/data/init_imgs/sample0/00000008.png filter=lfs diff=lfs merge=lfs -text
115
+ animate/data/init_imgs/sample0/00000009.png filter=lfs diff=lfs merge=lfs -text
116
+ animate/data/init_imgs/sample0/00000010.png filter=lfs diff=lfs merge=lfs -text
117
+ animate/data/init_imgs/sample0/00000011.png filter=lfs diff=lfs merge=lfs -text
118
+ animate/data/init_imgs/sample0/00000012.png filter=lfs diff=lfs merge=lfs -text
119
+ animate/data/init_imgs/sample0/00000013.png filter=lfs diff=lfs merge=lfs -text
120
+ animate/data/init_imgs/sample0/00000014.png filter=lfs diff=lfs merge=lfs -text
121
+ animate/data/init_imgs/sample0/00000015.png filter=lfs diff=lfs merge=lfs -text
122
+ animate/data/init_imgs/sample0/00000016.png filter=lfs diff=lfs merge=lfs -text
123
+ animate/data/init_imgs/sample0/00000017.png filter=lfs diff=lfs merge=lfs -text
124
+ animate/data/init_imgs/sample0/00000018.png filter=lfs diff=lfs merge=lfs -text
125
+ animate/data/init_imgs/sample0/00000019.png filter=lfs diff=lfs merge=lfs -text
126
+ animate/data/init_imgs/sample0/00000020.png filter=lfs diff=lfs merge=lfs -text
127
+ animate/data/init_imgs/sample0/00000021.png filter=lfs diff=lfs merge=lfs -text
128
+ animate/data/init_imgs/sample0/00000022.png filter=lfs diff=lfs merge=lfs -text
129
+ animate/data/init_imgs/sample0/00000023.png filter=lfs diff=lfs merge=lfs -text
130
+ animate/data/init_imgs/sample0/00000024.png filter=lfs diff=lfs merge=lfs -text
131
+ animate/data/init_imgs/sample0/00000025.png filter=lfs diff=lfs merge=lfs -text
132
+ animate/data/init_imgs/sample0/00000026.png filter=lfs diff=lfs merge=lfs -text
133
+ animate/data/init_imgs/sample0/00000027.png filter=lfs diff=lfs merge=lfs -text
134
+ animate/data/init_imgs/sample0/00000028.png filter=lfs diff=lfs merge=lfs -text
135
+ animate/data/init_imgs/sample0/00000029.png filter=lfs diff=lfs merge=lfs -text
136
+ animate/data/init_imgs/sample0/00000030.png filter=lfs diff=lfs merge=lfs -text
137
+ animate/data/init_imgs/sample0/00000031.png filter=lfs diff=lfs merge=lfs -text
138
+ animate/data/init_imgs/sample1/00000000.png filter=lfs diff=lfs merge=lfs -text
139
+ animate/data/init_imgs/sample1/00000001.png filter=lfs diff=lfs merge=lfs -text
140
+ animate/data/init_imgs/sample1/00000002.png filter=lfs diff=lfs merge=lfs -text
141
+ animate/data/init_imgs/sample1/00000003.png filter=lfs diff=lfs merge=lfs -text
142
+ animate/data/init_imgs/sample1/00000004.png filter=lfs diff=lfs merge=lfs -text
143
+ animate/data/init_imgs/sample1/00000005.png filter=lfs diff=lfs merge=lfs -text
144
+ animate/data/init_imgs/sample1/00000006.png filter=lfs diff=lfs merge=lfs -text
145
+ animate/data/init_imgs/sample1/00000007.png filter=lfs diff=lfs merge=lfs -text
146
+ animate/data/init_imgs/sample1/00000008.png filter=lfs diff=lfs merge=lfs -text
147
+ animate/data/init_imgs/sample1/00000009.png filter=lfs diff=lfs merge=lfs -text
148
+ animate/data/init_imgs/sample1/00000010.png filter=lfs diff=lfs merge=lfs -text
149
+ animate/data/init_imgs/sample1/00000011.png filter=lfs diff=lfs merge=lfs -text
150
+ animate/data/init_imgs/sample1/00000012.png filter=lfs diff=lfs merge=lfs -text
151
+ animate/data/init_imgs/sample1/00000013.png filter=lfs diff=lfs merge=lfs -text
152
+ animate/data/init_imgs/sample1/00000014.png filter=lfs diff=lfs merge=lfs -text
153
+ animate/data/init_imgs/sample1/00000015.png filter=lfs diff=lfs merge=lfs -text
154
+ animate/data/init_imgs/sample1/00000016.png filter=lfs diff=lfs merge=lfs -text
155
+ animate/data/init_imgs/sample1/00000017.png filter=lfs diff=lfs merge=lfs -text
156
+ animate/data/init_imgs/sample1/00000018.png filter=lfs diff=lfs merge=lfs -text
157
+ animate/data/init_imgs/sample1/00000019.png filter=lfs diff=lfs merge=lfs -text
158
+ animate/data/init_imgs/sample1/00000020.png filter=lfs diff=lfs merge=lfs -text
159
+ animate/data/init_imgs/sample1/00000021.png filter=lfs diff=lfs merge=lfs -text
160
+ animate/data/init_imgs/sample1/00000022.png filter=lfs diff=lfs merge=lfs -text
161
+ animate/data/init_imgs/sample1/00000023.png filter=lfs diff=lfs merge=lfs -text
162
+ animate/data/init_imgs/sample1/00000024.png filter=lfs diff=lfs merge=lfs -text
163
+ animate/data/init_imgs/sample1/00000025.png filter=lfs diff=lfs merge=lfs -text
164
+ animate/data/init_imgs/sample1/00000026.png filter=lfs diff=lfs merge=lfs -text
165
+ animate/data/init_imgs/sample1/00000027.png filter=lfs diff=lfs merge=lfs -text
166
+ animate/data/init_imgs/sample1/00000028.png filter=lfs diff=lfs merge=lfs -text
167
+ animate/data/init_imgs/sample1/00000029.png filter=lfs diff=lfs merge=lfs -text
168
+ animate/data/init_imgs/sample1/00000030.png filter=lfs diff=lfs merge=lfs -text
169
+ animate/data/init_imgs/sample1/00000031.png filter=lfs diff=lfs merge=lfs -text
170
+ animate/data/init_imgs/sample1/00000032.png filter=lfs diff=lfs merge=lfs -text
171
+ animate/data/init_imgs/sample1/00000033.png filter=lfs diff=lfs merge=lfs -text
172
+ animate/data/init_imgs/sample1/00000034.png filter=lfs diff=lfs merge=lfs -text
173
+ animate/data/init_imgs/sample1/00000035.png filter=lfs diff=lfs merge=lfs -text
174
+ animate/data/init_imgs/sample1/00000036.png filter=lfs diff=lfs merge=lfs -text
175
+ animate/data/init_imgs/sample1/00000037.png filter=lfs diff=lfs merge=lfs -text
176
+ animate/data/init_imgs/sample1/00000038.png filter=lfs diff=lfs merge=lfs -text
177
+ animate/data/init_imgs/sample1/00000039.png filter=lfs diff=lfs merge=lfs -text
178
+ animate/data/init_imgs/sample1/00000040.png filter=lfs diff=lfs merge=lfs -text
179
+ animate/data/init_imgs/sample1/00000041.png filter=lfs diff=lfs merge=lfs -text
180
+ animate/data/init_imgs/sample1/00000042.png filter=lfs diff=lfs merge=lfs -text
181
+ animate/data/init_imgs/sample1/00000043.png filter=lfs diff=lfs merge=lfs -text
182
+ animate/data/init_imgs/sample1/00000044.png filter=lfs diff=lfs merge=lfs -text
183
+ animate/data/init_imgs/sample1/00000045.png filter=lfs diff=lfs merge=lfs -text
184
+ animate/data/init_imgs/sample1/00000046.png filter=lfs diff=lfs merge=lfs -text
185
+ animate/data/init_imgs/sample1/00000047.png filter=lfs diff=lfs merge=lfs -text
186
+ animate/data/init_imgs/sample1/00000048.png filter=lfs diff=lfs merge=lfs -text
187
+ animate/data/init_imgs/sample1/00000049.png filter=lfs diff=lfs merge=lfs -text
188
+ animate/data/init_imgs/sample1/00000050.png filter=lfs diff=lfs merge=lfs -text
189
+ animate/data/init_imgs/sample1/00000051.png filter=lfs diff=lfs merge=lfs -text
190
+ animate/data/init_imgs/sample1/00000052.png filter=lfs diff=lfs merge=lfs -text
191
+ animate/data/init_imgs/sample1/00000053.png filter=lfs diff=lfs merge=lfs -text
192
+ animate/data/init_imgs/sample1/00000054.png filter=lfs diff=lfs merge=lfs -text
193
+ animate/data/init_imgs/sample1/00000055.png filter=lfs diff=lfs merge=lfs -text
194
+ animate/data/init_imgs/sample1/00000056.png filter=lfs diff=lfs merge=lfs -text
195
+ animate/data/init_imgs/sample1/00000057.png filter=lfs diff=lfs merge=lfs -text
196
+ animate/data/init_imgs/sample1/00000058.png filter=lfs diff=lfs merge=lfs -text
197
+ animate/data/init_imgs/sample1/00000059.png filter=lfs diff=lfs merge=lfs -text
198
+ animate/data/init_imgs/sample1/00000060.png filter=lfs diff=lfs merge=lfs -text
199
+ animate/data/init_imgs/sample1/00000061.png filter=lfs diff=lfs merge=lfs -text
200
+ animate/data/init_imgs/sample1/00000062.png filter=lfs diff=lfs merge=lfs -text
201
+ animate/data/init_imgs/sample1/00000063.png filter=lfs diff=lfs merge=lfs -text
202
+ animate/data/ip_adapter_image/cat/0000.png filter=lfs diff=lfs merge=lfs -text
203
+ animate/data/ip_adapter_image/cyberpunk/0000.png filter=lfs diff=lfs merge=lfs -text
204
+ animate/data/ip_adapter_image/dungeon/0000.png filter=lfs diff=lfs merge=lfs -text
205
+ animate/data/ip_adapter_image/girl/0000.png filter=lfs diff=lfs merge=lfs -text
206
+ animate/data/ref_image/ref_sample.png filter=lfs diff=lfs merge=lfs -text
animate/.editorconfig ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # http://editorconfig.org
2
+
3
+ root = true
4
+
5
+ [*]
6
+ indent_style = space
7
+ indent_size = 4
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+ charset = utf-8
11
+ end_of_line = lf
12
+
13
+ [*.bat]
14
+ indent_style = tab
15
+ end_of_line = crlf
16
+
17
+ [*.{json,jsonc}]
18
+ indent_style = space
19
+ indent_size = 2
20
+
21
+ [.vscode/*.{json,jsonc}]
22
+ indent_style = space
23
+ indent_size = 4
24
+
25
+ [*.{yml,yaml,toml}]
26
+ indent_style = space
27
+ indent_size = 2
28
+
29
+ [*.md]
30
+ trim_trailing_whitespace = false
31
+
32
+ [Makefile]
33
+ indent_style = tab
34
+ indent_size = 8
animate/.gitignore ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Created by https://www.toptal.com/developers/gitignore/api/linux,windows,macos,visualstudiocode,python
2
+ # Edit at https://www.toptal.com/developers/gitignore?templates=linux,windows,macos,visualstudiocode,python
3
+
4
+ ### Linux ###
5
+ *~
6
+
7
+ # temporary files which can be created if a process still has a handle open of a deleted file
8
+ .fuse_hidden*
9
+
10
+ # KDE directory preferences
11
+ .directory
12
+
13
+ # Linux trash folder which might appear on any partition or disk
14
+ .Trash-*
15
+
16
+ # .nfs files are created when an open file is removed but is still being accessed
17
+ .nfs*
18
+
19
+ ### macOS ###
20
+ # General
21
+ .DS_Store
22
+ .AppleDouble
23
+ .LSOverride
24
+
25
+ # Icon must end with two \r
26
+ Icon
27
+
28
+
29
+ # Thumbnails
30
+ ._*
31
+
32
+ # Files that might appear in the root of a volume
33
+ .DocumentRevisions-V100
34
+ .fseventsd
35
+ .Spotlight-V100
36
+ .TemporaryItems
37
+ .Trashes
38
+ .VolumeIcon.icns
39
+ .com.apple.timemachine.donotpresent
40
+
41
+ # Directories potentially created on remote AFP share
42
+ .AppleDB
43
+ .AppleDesktop
44
+ Network Trash Folder
45
+ Temporary Items
46
+ .apdisk
47
+
48
+ ### Python ###
49
+ # Byte-compiled / optimized / DLL files
50
+ __pycache__/
51
+ *.py[cod]
52
+ *$py.class
53
+
54
+ # C extensions
55
+ *.so
56
+
57
+ # Distribution / packaging
58
+ .Python
59
+ build/
60
+ develop-eggs/
61
+ dist/
62
+ downloads/
63
+ eggs/
64
+ .eggs/
65
+ lib/
66
+ lib64/
67
+ parts/
68
+ sdist/
69
+ var/
70
+ wheels/
71
+ share/python-wheels/
72
+ *.egg-info/
73
+ .installed.cfg
74
+ *.egg
75
+ MANIFEST
76
+
77
+ # PyInstaller
78
+ # Usually these files are written by a python script from a template
79
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
80
+ *.manifest
81
+ *.spec
82
+
83
+ # Installer logs
84
+ pip-log.txt
85
+ pip-delete-this-directory.txt
86
+
87
+ # Unit test / coverage reports
88
+ htmlcov/
89
+ .tox/
90
+ .nox/
91
+ .coverage
92
+ .coverage.*
93
+ .cache
94
+ nosetests.xml
95
+ coverage.xml
96
+ *.cover
97
+ *.py,cover
98
+ .hypothesis/
99
+ .pytest_cache/
100
+ cover/
101
+
102
+ # Translations
103
+ *.mo
104
+ *.pot
105
+
106
+ # Django stuff:
107
+ *.log
108
+ local_settings.py
109
+ db.sqlite3
110
+ db.sqlite3-journal
111
+
112
+ # Flask stuff:
113
+ instance/
114
+ .webassets-cache
115
+
116
+ # Scrapy stuff:
117
+ .scrapy
118
+
119
+ # Sphinx documentation
120
+ docs/_build/
121
+
122
+ # PyBuilder
123
+ .pybuilder/
124
+ target/
125
+
126
+ # Jupyter Notebook
127
+ .ipynb_checkpoints
128
+
129
+ # IPython
130
+ profile_default/
131
+ ipython_config.py
132
+
133
+ # pyenv
134
+ # For a library or package, you might want to ignore these files since the code is
135
+ # intended to run in multiple environments; otherwise, check them in:
136
+ # .python-version
137
+
138
+ # pipenv
139
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
140
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
141
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
142
+ # install all needed dependencies.
143
+ #Pipfile.lock
144
+
145
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
146
+ __pypackages__/
147
+
148
+ # Celery stuff
149
+ celerybeat-schedule
150
+ celerybeat.pid
151
+
152
+ # SageMath parsed files
153
+ *.sage.py
154
+
155
+ # Environments
156
+ .env
157
+ .venv
158
+ env/
159
+ venv/
160
+ ENV/
161
+ env.bak/
162
+ venv.bak/
163
+
164
+ # Spyder project settings
165
+ .spyderproject
166
+ .spyproject
167
+
168
+ # Rope project settings
169
+ .ropeproject
170
+
171
+ # mkdocs documentation
172
+ /site
173
+
174
+ # mypy
175
+ .mypy_cache/
176
+ .dmypy.json
177
+ dmypy.json
178
+
179
+ # Pyre type checker
180
+ .pyre/
181
+
182
+ # pytype static type analyzer
183
+ .pytype/
184
+
185
+ # Cython debug symbols
186
+ cython_debug/
187
+
188
+ ### VisualStudioCode ###
189
+ .vscode/*
190
+ !.vscode/settings.json
191
+ !.vscode/tasks.json
192
+ !.vscode/launch.json
193
+ !.vscode/extensions.json
194
+ *.code-workspace
195
+
196
+ # Local History for Visual Studio Code
197
+ .history/
198
+
199
+ ### VisualStudioCode Patch ###
200
+ # Ignore all local history of files
201
+ .history
202
+ .ionide
203
+
204
+ ### Windows ###
205
+ # Windows thumbnail cache files
206
+ Thumbs.db
207
+ Thumbs.db:encryptable
208
+ ehthumbs.db
209
+ ehthumbs_vista.db
210
+
211
+ # Dump file
212
+ *.stackdump
213
+
214
+ # Folder config file
215
+ [Dd]esktop.ini
216
+
217
+ # Recycle Bin used on file shares
218
+ $RECYCLE.BIN/
219
+
220
+ # Windows Installer files
221
+ *.cab
222
+ *.msi
223
+ *.msix
224
+ *.msm
225
+ *.msp
226
+
227
+ # Windows shortcuts
228
+ *.lnk
229
+
230
+ # End of https://www.toptal.com/developers/gitignore/api/linux,windows,macos,visualstudiocode,python
231
+
232
+ # setuptools-scm _version file
233
+ src/animatediff/_version.py
234
+
235
+ # local misc and temp
236
+ /misc/
237
+ /temp/
238
+
239
+ # envrc
240
+ .env*
241
+ !.envrc.example
animate/.pre-commit-config.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # See https://pre-commit.com for more information
2
+ ci:
3
+ autofix_prs: true
4
+ autoupdate_branch: "main"
5
+ autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
6
+ autoupdate_schedule: weekly
7
+
8
+ repos:
9
+ - repo: https://github.com/astral-sh/ruff-pre-commit
10
+ rev: "v0.0.281"
11
+ hooks:
12
+ - id: ruff
13
+ args: ["--fix", "--exit-non-zero-on-fix"]
14
+
15
+ - repo: https://github.com/psf/black
16
+ rev: 23.7.0
17
+ hooks:
18
+ - id: black
19
+ args: ["--line-length=110"]
20
+
21
+ - repo: https://github.com/pre-commit/pre-commit-hooks
22
+ rev: v4.4.0
23
+ hooks:
24
+ - id: trailing-whitespace
25
+ args: [--markdown-linebreak-ext=md]
26
+ - id: end-of-file-fixer
27
+ - id: check-yaml
28
+ - id: check-added-large-files
animate/COPYING ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2023, Andi Powers-Holmes
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
animate/LICENSE.md ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ ==============
3
+
4
+ _Version 2.0, January 2004_
5
+ _&lt;<http://www.apache.org/licenses/>&gt;_
6
+
7
+ ### Terms and Conditions for use, reproduction, and distribution
8
+
9
+ #### 1. Definitions
10
+
11
+ “License” shall mean the terms and conditions for use, reproduction, and
12
+ distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ “Licensor” shall mean the copyright owner or entity authorized by the copyright
15
+ owner that is granting the License.
16
+
17
+ “Legal Entity” shall mean the union of the acting entity and all other entities
18
+ that control, are controlled by, or are under common control with that entity.
19
+ For the purposes of this definition, “control” means **(i)** the power, direct or
20
+ indirect, to cause the direction or management of such entity, whether by
21
+ contract or otherwise, or **(ii)** ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or **(iii)** beneficial ownership of such entity.
23
+
24
+ “You” (or “Your”) shall mean an individual or Legal Entity exercising
25
+ permissions granted by this License.
26
+
27
+ “Source” form shall mean the preferred form for making modifications, including
28
+ but not limited to software source code, documentation source, and configuration
29
+ files.
30
+
31
+ “Object” form shall mean any form resulting from mechanical transformation or
32
+ translation of a Source form, including but not limited to compiled object code,
33
+ generated documentation, and conversions to other media types.
34
+
35
+ “Work” shall mean the work of authorship, whether in Source or Object form, made
36
+ available under the License, as indicated by a copyright notice that is included
37
+ in or attached to the work (an example is provided in the Appendix below).
38
+
39
+ “Derivative Works” shall mean any work, whether in Source or Object form, that
40
+ is based on (or derived from) the Work and for which the editorial revisions,
41
+ annotations, elaborations, or other modifications represent, as a whole, an
42
+ original work of authorship. For the purposes of this License, Derivative Works
43
+ shall not include works that remain separable from, or merely link (or bind by
44
+ name) to the interfaces of, the Work and Derivative Works thereof.
45
+
46
+ “Contribution” shall mean any work of authorship, including the original version
47
+ of the Work and any modifications or additions to that Work or Derivative Works
48
+ thereof, that is intentionally submitted to Licensor for inclusion in the Work
49
+ by the copyright owner or by an individual or Legal Entity authorized to submit
50
+ on behalf of the copyright owner. For the purposes of this definition,
51
+ “submitted” means any form of electronic, verbal, or written communication sent
52
+ to the Licensor or its representatives, including but not limited to
53
+ communication on electronic mailing lists, source code control systems, and
54
+ issue tracking systems that are managed by, or on behalf of, the Licensor for
55
+ the purpose of discussing and improving the Work, but excluding communication
56
+ that is conspicuously marked or otherwise designated in writing by the copyright
57
+ owner as “Not a Contribution.”
58
+
59
+ “Contributor” shall mean Licensor and any individual or Legal Entity on behalf
60
+ of whom a Contribution has been received by Licensor and subsequently
61
+ incorporated within the Work.
62
+
63
+ #### 2. Grant of Copyright License
64
+
65
+ Subject to the terms and conditions of this License, each Contributor hereby
66
+ grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
67
+ irrevocable copyright license to reproduce, prepare Derivative Works of,
68
+ publicly display, publicly perform, sublicense, and distribute the Work and such
69
+ Derivative Works in Source or Object form.
70
+
71
+ #### 3. Grant of Patent License
72
+
73
+ Subject to the terms and conditions of this License, each Contributor hereby
74
+ grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
75
+ irrevocable (except as stated in this section) patent license to make, have
76
+ made, use, offer to sell, sell, import, and otherwise transfer the Work, where
77
+ such license applies only to those patent claims licensable by such Contributor
78
+ that are necessarily infringed by their Contribution(s) alone or by combination
79
+ of their Contribution(s) with the Work to which such Contribution(s) was
80
+ submitted. If You institute patent litigation against any entity (including a
81
+ cross-claim or counterclaim in a lawsuit) alleging that the Work or a
82
+ Contribution incorporated within the Work constitutes direct or contributory
83
+ patent infringement, then any patent licenses granted to You under this License
84
+ for that Work shall terminate as of the date such litigation is filed.
85
+
86
+ #### 4. Redistribution
87
+
88
+ You may reproduce and distribute copies of the Work or Derivative Works thereof
89
+ in any medium, with or without modifications, and in Source or Object form,
90
+ provided that You meet the following conditions:
91
+
92
+ * **(a)** You must give any other recipients of the Work or Derivative Works a copy of
93
+ this License; and
94
+ * **(b)** You must cause any modified files to carry prominent notices stating that You
95
+ changed the files; and
96
+ * **(c)** You must retain, in the Source form of any Derivative Works that You distribute,
97
+ all copyright, patent, trademark, and attribution notices from the Source form
98
+ of the Work, excluding those notices that do not pertain to any part of the
99
+ Derivative Works; and
100
+ * **(d)** If the Work includes a “NOTICE” text file as part of its distribution, then any
101
+ Derivative Works that You distribute must include a readable copy of the
102
+ attribution notices contained within such NOTICE file, excluding those notices
103
+ that do not pertain to any part of the Derivative Works, in at least one of the
104
+ following places: within a NOTICE text file distributed as part of the
105
+ Derivative Works; within the Source form or documentation, if provided along
106
+ with the Derivative Works; or, within a display generated by the Derivative
107
+ Works, if and wherever such third-party notices normally appear. The contents of
108
+ the NOTICE file are for informational purposes only and do not modify the
109
+ License. You may add Your own attribution notices within Derivative Works that
110
+ You distribute, alongside or as an addendum to the NOTICE text from the Work,
111
+ provided that such additional attribution notices cannot be construed as
112
+ modifying the License.
113
+
114
+ You may add Your own copyright statement to Your modifications and may provide
115
+ additional or different license terms and conditions for use, reproduction, or
116
+ distribution of Your modifications, or for any such Derivative Works as a whole,
117
+ provided Your use, reproduction, and distribution of the Work otherwise complies
118
+ with the conditions stated in this License.
119
+
120
+ #### 5. Submission of Contributions
121
+
122
+ Unless You explicitly state otherwise, any Contribution intentionally submitted
123
+ for inclusion in the Work by You to the Licensor shall be under the terms and
124
+ conditions of this License, without any additional terms or conditions.
125
+ Notwithstanding the above, nothing herein shall supersede or modify the terms of
126
+ any separate license agreement you may have executed with Licensor regarding
127
+ such Contributions.
128
+
129
+ #### 6. Trademarks
130
+
131
+ This License does not grant permission to use the trade names, trademarks,
132
+ service marks, or product names of the Licensor, except as required for
133
+ reasonable and customary use in describing the origin of the Work and
134
+ reproducing the content of the NOTICE file.
135
+
136
+ #### 7. Disclaimer of Warranty
137
+
138
+ Unless required by applicable law or agreed to in writing, Licensor provides the
139
+ Work (and each Contributor provides its Contributions) on an “AS IS” BASIS,
140
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
141
+ including, without limitation, any warranties or conditions of TITLE,
142
+ NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
143
+ solely responsible for determining the appropriateness of using or
144
+ redistributing the Work and assume any risks associated with Your exercise of
145
+ permissions under this License.
146
+
147
+ #### 8. Limitation of Liability
148
+
149
+ In no event and under no legal theory, whether in tort (including negligence),
150
+ contract, or otherwise, unless required by applicable law (such as deliberate
151
+ and grossly negligent acts) or agreed to in writing, shall any Contributor be
152
+ liable to You for damages, including any direct, indirect, special, incidental,
153
+ or consequential damages of any character arising as a result of this License or
154
+ out of the use or inability to use the Work (including but not limited to
155
+ damages for loss of goodwill, work stoppage, computer failure or malfunction, or
156
+ any and all other commercial damages or losses), even if such Contributor has
157
+ been advised of the possibility of such damages.
158
+
159
+ #### 9. Accepting Warranty or Additional Liability
160
+
161
+ While redistributing the Work or Derivative Works thereof, You may choose to
162
+ offer, and charge a fee for, acceptance of support, warranty, indemnity, or
163
+ other liability obligations and/or rights consistent with this License. However,
164
+ in accepting such obligations, You may act only on Your own behalf and on Your
165
+ sole responsibility, not on behalf of any other Contributor, and only if You
166
+ agree to indemnify, defend, and hold each Contributor harmless for any liability
167
+ incurred by, or claims asserted against, such Contributor by reason of your
168
+ accepting any such warranty or additional liability.
169
+
170
+ _END OF TERMS AND CONDITIONS_
171
+
172
+ ### APPENDIX: How to apply the Apache License to your work
173
+
174
+ To apply the Apache License to your work, attach the following boilerplate
175
+ notice, with the fields enclosed by brackets `[]` replaced with your own
176
+ identifying information. (Don't include the brackets!) The text should be
177
+ enclosed in the appropriate comment syntax for the file format. We also
178
+ recommend that a file or class name and description of purpose be included on
179
+ the same “printed page” as the copyright notice for easier identification within
180
+ third-party archives.
181
+
182
+ Copyright [yyyy] [name of copyright owner]
183
+
184
+ Licensed under the Apache License, Version 2.0 (the "License");
185
+ you may not use this file except in compliance with the License.
186
+ You may obtain a copy of the License at
187
+
188
+ http://www.apache.org/licenses/LICENSE-2.0
189
+
190
+ Unless required by applicable law or agreed to in writing, software
191
+ distributed under the License is distributed on an "AS IS" BASIS,
192
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
193
+ See the License for the specific language governing permissions and
194
+ limitations under the License.
animate/MANIFEST.in ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ # setuptools_scm will grab all tracked files, minus these exclusions
2
+ prune .vscode
animate/README.md ADDED
@@ -0,0 +1,925 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AnimateDiff prompt travel
2
+
3
+ [AnimateDiff](https://github.com/guoyww/AnimateDiff) with prompt travel + [ControlNet](https://github.com/lllyasviel/ControlNet) + [IP-Adapter](https://github.com/tencent-ailab/IP-Adapter)
4
+
5
+ I added a experimental feature to animatediff-cli to change the prompt in the middle of the frame.
6
+
7
+ It seems to work surprisingly well!
8
+
9
+ ### Example
10
+
11
+ - context_schedule "composite"
12
+ - pros : more stable animation
13
+ - cons : ignore prompts that require compositional changes
14
+ - "uniform"(default) / "composite"
15
+
16
+ <div><video controls src="https://github.com/s9roll7/animatediff-cli-prompt-travel/assets/118420657/717536f1-7c60-49a6-ad3a-de31d6b3efd9" muted="false"></video></div>
17
+ <br>
18
+
19
+
20
+
21
+
22
+
23
+ - controlnet for region
24
+ - controlnet_openpose for fg
25
+ - controlnet_tile(0.7) for bg
26
+ <div><video controls src="https://github.com/s9roll7/animatediff-cli-prompt-travel/assets/118420657/09fbf348-42ed-425c-9ec0-2865d233203a" muted="false"></video></div>
27
+ <br>
28
+
29
+
30
+ - added new controlnet [animatediff-controlnet](https://www.reddit.com/r/StableDiffusion/comments/183gt1g/animation_with_animatediff_and_retrained/)
31
+ - It works like ip2p and is very useful for replacing characters
32
+ - (This sample is generated at high resolution using the gradual latent hires fix)
33
+ - more example [here](https://github.com/s9roll7/animatediff-cli-prompt-travel/issues/189)
34
+ <div><video controls src="https://github.com/s9roll7/animatediff-cli-prompt-travel/assets/118420657/a867c480-3f1a-4e2c-874f-88c1a54e8903" muted="false"></video></div>
35
+ <br>
36
+
37
+
38
+ - gradual latent hires fix
39
+ - sd15 512x856 / sd15 768x1280 / sd15 768x1280 with gradual latent hires fix
40
+ - more example [here](https://github.com/s9roll7/animatediff-cli-prompt-travel/issues/188)
41
+ <div><video controls src="https://github.com/s9roll7/animatediff-cli-prompt-travel/assets/118420657/346c0541-7f05-4c45-ab2a-911bc0942fa8" muted="false"></video></div>
42
+ <br>
43
+
44
+
45
+ - [sdxl turbo lora](https://civitai.com/models/215485?modelVersionId=242807)
46
+ - more example [here](https://github.com/s9roll7/animatediff-cli-prompt-travel/issues/184)
47
+
48
+ <div><video controls src="https://github.com/s9roll7/animatediff-cli-prompt-travel/assets/118420657/15c39ac2-3853-44f5-b08c-142c90985c4b" muted="false"></video></div>
49
+ <br>
50
+
51
+ <br>
52
+
53
+ [Click here to see old samples.](example.md)
54
+
55
+ <br>
56
+ <br>
57
+
58
+
59
+ ### Installation(for windows)
60
+ Same as the original animatediff
61
+ [Python 3.10](https://www.python.org/) and git client must be installed
62
+
63
+ (https://www.reddit.com/r/StableDiffusion/comments/157c0wl/working_animatediff_cli_windows_install/)
64
+
65
+ I found a detailed tutorial
66
+ (https://www.reddit.com/r/StableDiffusion/comments/16vlk9j/guide_to_creating_videos_with/)
67
+ (https://www.youtube.com/watch?v=7_hh3wOD81s)
68
+
69
+ ### How To Use
70
+ Almost same as the original animatediff-cli, but with a slight change in config format.
71
+ ```json
72
+
73
+ {
74
+ "name": "sample",
75
+ "path": "share/Stable-diffusion/mistoonAnime_v20.safetensors", # Specify Checkpoint as a path relative to /animatediff-cli/data
76
+ "lcm_map":{ # lcm-lora
77
+ "enable":false,
78
+ "start_scale":0.15,
79
+ "end_scale":0.75,
80
+ "gradient_start":0.2,
81
+ "gradient_end":0.75
82
+ },
83
+ "gradual_latent_hires_fix_map":{ # gradual latent hires fix
84
+ # This is an option to address the problem of chaos being generated when the model is generated beyond its proper size.
85
+ # It also has the effect of increasing generation speed.
86
+ "enable": false, # enable/disable
87
+ "scale": { # "DENOISE PROGRESS" : LATENT SCALE format
88
+ # In this example, Up to 70% of the total denoise, latent is halved to the specified size.
89
+ # From 70% to the end, calculate the size as specified.
90
+ "0": 0.5,
91
+ "0.7": 1.0
92
+ },
93
+ "reverse_steps": 5, # Number of reversal steps at latent size switching timing
94
+ "noise_add_count":3 # Additive amount of noise at latent size switching timing
95
+ },
96
+ "vae_path":"share/VAE/vae-ft-mse-840000-ema-pruned.ckpt", # Specify vae as a path relative to /animatediff-cli/data
97
+ "motion_module": "models/motion-module/mm_sd_v14.ckpt", # Specify motion module as a path relative to /animatediff-cli/data
98
+ "context_schedule":"uniform", # "uniform" or "composite"
99
+ "compile": false,
100
+ "seed": [
101
+ 341774366206100,-1,-1 # -1 means random. If "--repeats 3" is specified in this setting, The first will be 341774366206100, the second and third will be random.
102
+ ],
103
+ "scheduler": "ddim", # "ddim","euler","euler_a","k_dpmpp_2m", etc...
104
+ "steps": 40,
105
+ "guidance_scale": 20, # cfg scale
106
+ "clip_skip": 2,
107
+ "prompt_fixed_ratio": 0.5,
108
+ "head_prompt": "masterpiece, best quality, a beautiful and detailed portriat of muffet, monster girl,((purple body:1.3)),humanoid, arachnid, anthro,((fangs)),pigtails,hair bows,5 eyes,spider girl,6 arms,solo",
109
+ "prompt_map": { # "FRAME" : "PROMPT" format / ex. prompt for frame 32 is "head_prompt" + prompt_map["32"] + "tail_prompt"
110
+ "0": "smile standing,((spider webs:1.0))",
111
+ "32": "(((walking))),((spider webs:1.0))",
112
+ "64": "(((running))),((spider webs:2.0)),wide angle lens, fish eye effect",
113
+ "96": "(((sitting))),((spider webs:1.0))"
114
+ },
115
+ "tail_prompt": "clothed, open mouth, awesome and detailed background, holding teapot, holding teacup, 6 hands,detailed hands,storefront that sells pastries and tea,bloomers,(red and black clothing),inside,pouring into teacup,muffetwear",
116
+ "n_prompt": [
117
+ "(worst quality, low quality:1.4),nudity,simple background,border,mouth closed,text, patreon,bed,bedroom,white background,((monochrome)),sketch,(pink body:1.4),7 arms,8 arms,4 arms"
118
+ ],
119
+ "lora_map": { # "PATH_TO_LORA" : STRENGTH format
120
+ "share/Lora/muffet_v2.safetensors" : 1.0, # Specify lora as a path relative to /animatediff-cli/data
121
+ "share/Lora/add_detail.safetensors" : 1.0 # Lora support is limited. Not all formats can be used!!!
122
+ },
123
+ "motion_lora_map": { # "PATH_TO_LORA" : STRENGTH format
124
+ "models/motion_lora/v2_lora_RollingAnticlockwise.ckpt":0.5, # Currently, the officially distributed lora seems to work only for v2 motion modules (mm_sd_v15_v2.ckpt).
125
+ "models/motion_lora/v2_lora_ZoomIn.ckpt":0.5
126
+ },
127
+ "ip_adapter_map": { # config for ip-adapter
128
+ # enable/disable (important)
129
+ "enable": true,
130
+ # Specify input image directory relative to /animatediff-cli/data (important! No need to specify frames in the config file. The effect on generation is exactly the same logic as the placement of the prompt)
131
+ "input_image_dir": "ip_adapter_image/test",
132
+ "prompt_fixed_ratio": 0.5,
133
+ # save input image or not
134
+ "save_input_image": true,
135
+ # Ratio of image prompt vs text prompt (important). Even if you want to emphasize only the image prompt in 1.0, do not leave prompt/neg prompt empty, but specify a general text such as "best quality".
136
+ "scale": 0.5,
137
+ # IP-Adapter/IP-Adapter Full Face/IP-Adapter Plus Face/IP-Adapter Plus/IP-Adapter Light (important) It would be a completely different outcome. Not always PLUS a superior result.
138
+ "is_full_face": false,
139
+ "is_plus_face": false,
140
+ "is_plus": true,
141
+ "is_light": false
142
+ },
143
+ "img2img_map": {
144
+ # enable/disable
145
+ "enable": true,
146
+ # Directory where the initial image is placed
147
+ "init_img_dir": "..\\stylize\\2023-10-27T19-43-01-sample-mistoonanime_v20\\00_img2img",
148
+ "save_init_image": true,
149
+ # The smaller the value, the closer the result will be to the initial image.
150
+ "denoising_strength": 0.7
151
+ },
152
+ "region_map": {
153
+ # setting for region 0. You can also add regions if necessary.
154
+ # The region added at the back will be drawn at the front.
155
+ "0": {
156
+ # enable/disable
157
+ "enable": true,
158
+ # If you want to draw a separate object for each region, enter a value of 0.1 or higher.
159
+ "crop_generation_rate": 0.1,
160
+ # Directory where mask images are placed
161
+ "mask_dir": "..\\stylize\\2023-10-27T19-43-01-sample-mistoonanime_v20\\r_fg_00_2023-10-27T19-44-08\\00_mask",
162
+ "save_mask": true,
163
+ # If true, the initial image will be drawn as is (inpaint)
164
+ "is_init_img": false,
165
+ # conditions for region 0
166
+ "condition": {
167
+ # text prompt for region 0
168
+ "prompt_fixed_ratio": 0.5,
169
+ "head_prompt": "",
170
+ "prompt_map": {
171
+ "0": "(masterpiece, best quality:1.2), solo, 1girl, kusanagi motoko, looking at viewer, jacket, leotard, thighhighs, gloves, cleavage"
172
+ },
173
+ "tail_prompt": "",
174
+ # image prompt(ip adapter) for region 0
175
+ # It is not possible to change lora for each region, but you can do something similar using an ip adapter.
176
+ "ip_adapter_map": {
177
+ "enable": true,
178
+ "input_image_dir": "..\\stylize\\2023-10-27T19-43-01-sample-mistoonanime_v20\\r_fg_00_2023-10-27T19-44-08\\00_ipadapter",
179
+ "prompt_fixed_ratio": 0.5,
180
+ "save_input_image": true,
181
+ "resized_to_square": false
182
+ }
183
+ }
184
+ },
185
+ # setting for background
186
+ "background": {
187
+ # If true, the initial image will be drawn as is (inpaint)
188
+ "is_init_img": true,
189
+ "hint": "background's condition refers to the one in root"
190
+ }
191
+ },
192
+ "controlnet_map": { # config for controlnet(for generation)
193
+ "input_image_dir" : "controlnet_image/test", # Specify input image directory relative to /animatediff-cli/data (important! Please refer to the directory structure of sample. No need to specify frames in the config file.)
194
+ "max_samples_on_vram" : 200, # If you specify a large number of images for controlnet and vram will not be enough, reduce this value. 0 means that everything should be placed in cpu.
195
+ "max_models_on_vram" : 3, # Number of controlnet models to be placed in vram
196
+ "save_detectmap" : true, # save preprocessed image or not
197
+ "preprocess_on_gpu": true, # run preprocess on gpu or not (It probably does not affect vram usage at peak, so it should always set true.)
198
+ "is_loop": true, # Whether controlnet effects consider loop
199
+
200
+ "controlnet_tile":{ # config for controlnet_tile
201
+ "enable": true, # enable/disable (important)
202
+ "use_preprocessor":true, # Whether to use a preprocessor for each controlnet type
203
+ "preprocessor":{ # If not specified, the default preprocessor is selected.(Most of the time the default should be fine.)
204
+ # none/blur/tile_resample/upernet_seg/ or key in controlnet_aux.processor.MODELS
205
+ # https://github.com/patrickvonplaten/controlnet_aux/blob/2fd027162e7aef8c18d0a9b5a344727d37f4f13d/src/controlnet_aux/processor.py#L20
206
+ "type" : "tile_resample",
207
+ "param":{
208
+ "down_sampling_rate":2.0
209
+ }
210
+ },
211
+ "guess_mode":false,
212
+ # control weight (important)
213
+ "controlnet_conditioning_scale": 1.0,
214
+ # starting control step
215
+ "control_guidance_start": 0.0,
216
+ # ending control step
217
+ "control_guidance_end": 1.0,
218
+ # list of influences on neighboring frames (important)
219
+ # This means that there is an impact of 0.5 on both neighboring frames and 0.4 on the one next to it. Try lengthening, shortening, or changing the values inside.
220
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
221
+ # list of regions where controlnet works
222
+ # In this example, it only affects region "0", but not "background".
223
+ "control_region_list": ["0"]
224
+ },
225
+ "controlnet_ip2p":{
226
+ "enable": true,
227
+ "use_preprocessor":true,
228
+ "guess_mode":false,
229
+ "controlnet_conditioning_scale": 1.0,
230
+ "control_guidance_start": 0.0,
231
+ "control_guidance_end": 1.0,
232
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
233
+ # In this example, all regions are affected
234
+ "control_region_list": []
235
+ },
236
+ "controlnet_lineart_anime":{
237
+ "enable": true,
238
+ "use_preprocessor":true,
239
+ "guess_mode":false,
240
+ "controlnet_conditioning_scale": 1.0,
241
+ "control_guidance_start": 0.0,
242
+ "control_guidance_end": 1.0,
243
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
244
+ # In this example, it only affects region "background", but not "0".
245
+ "control_region_list": ["background"]
246
+ },
247
+ "controlnet_openpose":{
248
+ "enable": true,
249
+ "use_preprocessor":true,
250
+ "guess_mode":false,
251
+ "controlnet_conditioning_scale": 1.0,
252
+ "control_guidance_start": 0.0,
253
+ "control_guidance_end": 1.0,
254
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
255
+ # In this example, all regions are affected (since these are the only two regions defined)
256
+ "control_region_list": ["0", "background"]
257
+ },
258
+ "controlnet_softedge":{
259
+ "enable": true,
260
+ "use_preprocessor":true,
261
+ "preprocessor":{
262
+ "type" : "softedge_pidsafe",
263
+ "param":{
264
+ }
265
+ },
266
+ "guess_mode":false,
267
+ "controlnet_conditioning_scale": 1.0,
268
+ "control_guidance_start": 0.0,
269
+ "control_guidance_end": 1.0,
270
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
271
+ },
272
+ "controlnet_ref": {
273
+ "enable": false, # enable/disable (important)
274
+ "ref_image": "ref_image/ref_sample.png", # path to reference image.
275
+ "attention_auto_machine_weight": 1.0,
276
+ "gn_auto_machine_weight": 1.0,
277
+ "style_fidelity": 0.5, # control weight-like parameter(important)
278
+ "reference_attn": true, # [attn=true , adain=false] means "reference_only"
279
+ "reference_adain": false,
280
+ "scale_pattern":[0.5] # Pattern for applying controlnet_ref to frames
281
+ } # ex. [0.5] means [0.5,0.5,0.5,0.5,0.5 .... ]. All frames are affected by 50%
282
+ # ex. [1, 0] means [1,0,1,0,1,0,1,0,1,0,1 ....]. Only even frames are affected by 100%.
283
+ },
284
+ "upscale_config": { # config for tile-upscale
285
+ "scheduler": "ddim",
286
+ "steps": 20,
287
+ "strength": 0.5,
288
+ "guidance_scale": 10,
289
+ "controlnet_tile": { # config for controlnet tile
290
+ "enable": true, # enable/disable (important)
291
+ "controlnet_conditioning_scale": 1.0, # control weight (important)
292
+ "guess_mode": false,
293
+ "control_guidance_start": 0.0, # starting control step
294
+ "control_guidance_end": 1.0 # ending control step
295
+ },
296
+ "controlnet_line_anime": { # config for controlnet line anime
297
+ "enable": false,
298
+ "controlnet_conditioning_scale": 1.0,
299
+ "guess_mode": false,
300
+ "control_guidance_start": 0.0,
301
+ "control_guidance_end": 1.0
302
+ },
303
+ "controlnet_ip2p": { # config for controlnet ip2p
304
+ "enable": false,
305
+ "controlnet_conditioning_scale": 0.5,
306
+ "guess_mode": false,
307
+ "control_guidance_start": 0.0,
308
+ "control_guidance_end": 1.0
309
+ },
310
+ "controlnet_ref": { # config for controlnet ref
311
+ "enable": false, # enable/disable (important)
312
+ "use_frame_as_ref_image": false, # use original frames as ref_image for each upscale (important)
313
+ "use_1st_frame_as_ref_image": false, # use 1st original frame as ref_image for all upscale (important)
314
+ "ref_image": "ref_image/path_to_your_ref_img.jpg", # use specified image file as ref_image for all upscale (important)
315
+ "attention_auto_machine_weight": 1.0,
316
+ "gn_auto_machine_weight": 1.0,
317
+ "style_fidelity": 0.25, # control weight-like parameter(important)
318
+ "reference_attn": true, # [attn=true , adain=false] means "reference_only"
319
+ "reference_adain": false
320
+ }
321
+ },
322
+ "output":{ # output format
323
+ "format" : "gif", # gif/mp4/webm
324
+ "fps" : 8,
325
+ "encode_param":{
326
+ "crf": 10
327
+ }
328
+ }
329
+ }
330
+ ```
331
+
332
+ ```sh
333
+ python3 -m pip install -U realesrgan imageio-ffmpeg
334
+ python3 - <<EOF
335
+ import fileinput, importlib
336
+ for line in fileinput.input(importlib.util.find_spec('basicsr').origin.replace('__init__', 'data/degradations'), inplace=True): print(line.replace('torchvision.transforms.functional_tensor', 'torchvision.transforms.functional'), end='')
337
+ for line in fileinput.input(importlib.util.find_spec('facexlib.detection').origin, inplace=True): print(line.replace('https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth', 'https://huggingface.co/chaowenguo/pal/resolve/main/detection_Resnet50_Final.pth'), end='')
338
+ for line in fileinput.input(importlib.util.find_spec('facexlib.parsing').origin, inplace=True): print(line.replace('https://github.com/xinntao/facexlib/releases/download/v0.2.2/parsing_parsenet.pth', 'https://huggingface.co/chaowenguo/pal/resolve/main/parsing_parsenet.pth'), end='')
339
+ EOF
340
+
341
+ git clone https://bitbucket.org/chaowenguo/animatediff
342
+ cd animatediff
343
+ python3 -m pip install -U . torchvision==0.21 onnxruntime-gpu moviepy
344
+ cd ..
345
+ cp -r animatediff/config .
346
+
347
+ curl -L -O https://huggingface.co/chaowenguo/AnimateLCM/resolve/main/AnimateLCM_sd15_t2v.ckpt
348
+ cat <<EOF > config/prompts/prompt_travel.json
349
+ {
350
+ "name": "sample",
351
+ "path": "",
352
+ "motion_module": "",
353
+ "lcm_map":{
354
+ "enable":true,
355
+ "start_scale":0.15,
356
+ "end_scale":0.75,
357
+ "gradient_start":0.2,
358
+ "gradient_end":0.75
359
+ },
360
+ "seed": [
361
+ 1
362
+ ],
363
+ "scheduler": "lcm",
364
+ "steps": 8,
365
+ "guidance_scale": 3,
366
+ "unet_batch_size": 1,
367
+ "clip_skip": 2,
368
+ "prompt_fixed_ratio": 1,
369
+ "head_prompt": "A full body gorgeous smiling slim young cleavage robust boob japanese girl, beautiful face, wearing skirt, standing on beach, two hands each with five fingers, two arms, front view",
370
+ "prompt_map": {
371
+ "0": "waving hand, open palm"
372
+ },
373
+ "tail_prompt": "best quality, extremely detailed, HD, ultra-realistic, 8K, HQ, masterpiece, trending on artstation, art, smooth",
374
+ "n_prompt": [
375
+ "(nipple:1.4), dudou, shirt, skirt, collar, shawl, hat, sock, sleeve, glove, headgear, back view, monochrome, longbody, lowres, bad anatomy, bad hands, fused fingers, missing fingers, too many fingers, extra digit, fewer digits, cropped, worst quality, low quality, deformed body, bloated, ugly, unrealistic, extra hands and arms"
376
+ ],
377
+ "lora_map": {},
378
+ "motion_lora_map": {}
379
+ }
380
+ EOF
381
+ ```
382
+
383
+ ```py
384
+ import basicsr, realesrgan, gfpgan, imageio, pathlib, diffusers, torch, transformers, moviepy, builtins, numpy, re
385
+ from animatediff import get_dir
386
+ from animatediff.generate import (controlnet_preprocess, create_pipeline,
387
+ create_us_pipeline, img2img_preprocess,
388
+ ip_adapter_preprocess,
389
+ load_controlnet_models, prompt_preprocess,
390
+ region_preprocess, run_inference,
391
+ run_upscale, save_output,
392
+ unload_controlnet_models,
393
+ wild_card_conversion)
394
+ from animatediff.settings import (CKPT_EXTENSIONS, InferenceConfig,
395
+ ModelConfig, get_infer_config,
396
+ get_model_config)
397
+ from animatediff.utils.model import (checkpoint_to_pipeline,
398
+ fix_checkpoint_if_needed, get_base_model)
399
+ from animatediff.utils.pipeline import get_context_params, send_to_device
400
+ from animatediff.utils.util import (is_sdxl_checkpoint,
401
+ is_v2_motion_module,
402
+ set_tensor_interpolation_method)
403
+ from animatediff.pipelines import load_text_embeddings
404
+ from animatediff.schedulers import DiffusionScheduler, get_scheduler
405
+ from animatediff.pipelines.lora import load_lcm_lora, load_lora_map
406
+ import huggingface_hub
407
+ import animatediff
408
+
409
+ width=432
410
+ height=768
411
+ length=1440
412
+ model_config = get_model_config('config/prompts/prompt_travel.json')
413
+ is_sdxl = False
414
+ is_v2 = True
415
+ infer_config = get_infer_config(is_v2, is_sdxl)
416
+ set_tensor_interpolation_method(model_config.tensor_interpolation_slerp)
417
+ device = torch.device('cuda')
418
+ save_dir = pathlib.Path('output')
419
+ controlnet_image_map, controlnet_type_map, controlnet_ref_map, controlnet_no_shrink = controlnet_preprocess(model_config.controlnet_map, width, height, length, save_dir, device, is_sdxl)
420
+ img2img_map = img2img_preprocess(model_config.img2img_map, width, height, length, save_dir)
421
+
422
+ base_model = pathlib.Path('/tmp/base')
423
+ diffusers.StableDiffusionPipeline.from_pretrained('chaowenguo/stable-diffusion-v1-5').save_pretrained(base_model)
424
+
425
+ tokenizer = transformers.CLIPTokenizer.from_pretrained(base_model, subfolder='tokenizer')
426
+ text_encoder = transformers.CLIPTextModel.from_pretrained(base_model, subfolder='text_encoder')
427
+ vae = diffusers.AutoencoderKL.from_pretrained(base_model, subfolder='vae')
428
+ unet = animatediff.models.unet.UNet3DConditionModel.from_pretrained_2d(
429
+ pretrained_model_path=base_model,
430
+ motion_module_path=pathlib.Path.cwd().joinpath('AnimateLCM_sd15_t2v.ckpt'),
431
+ subfolder='unet',
432
+ unet_additional_kwargs=infer_config.unet_additional_kwargs,
433
+ )
434
+ feature_extractor = transformers.CLIPImageProcessor.from_pretrained(base_model, subfolder='feature_extractor')
435
+
436
+ pipeline = diffusers.StableDiffusionPipeline.from_single_file('https://huggingface.co/chaowenguo/pal/blob/main/chilloutMix-Ni.safetensors',config='chaowenguo/stable-diffusion-v1-5', safety_checker=None, use_safetensors=True)
437
+ unet.load_state_dict(pipeline.unet.state_dict(), strict=False)
438
+ text_encoder.load_state_dict(pipeline.text_encoder.state_dict(), strict=False)
439
+ vae.load_state_dict(pipeline.vae.state_dict(), strict=False)
440
+ del pipeline
441
+ unet.enable_xformers_memory_efficient_attention()
442
+
443
+ pipeline = animatediff.pipelines.AnimationPipeline(
444
+ vae=vae,
445
+ text_encoder=text_encoder,
446
+ tokenizer=tokenizer,
447
+ unet=unet,
448
+ scheduler=get_scheduler(model_config.scheduler, infer_config.noise_scheduler_kwargs),
449
+ feature_extractor=feature_extractor,
450
+ controlnet_map=None,
451
+ )
452
+
453
+ lcm_lora = pathlib.Path.cwd().joinpath('data/models/lcm_lora/sd15')
454
+ lcm_lora.mkdir(parents=True)
455
+ huggingface_hub.hf_hub_download(repo_id='chaowenguo/AnimateLCM', filename='AnimateLCM_sd15_t2v_lora.safetensors', local_dir=lcm_lora)
456
+ load_lcm_lora(pipeline, model_config.lcm_map, is_sdxl=is_sdxl)
457
+ load_lora_map(pipeline, model_config.lora_map, length, is_sdxl=is_sdxl)
458
+
459
+ pipeline.unet = pipeline.unet.half()
460
+ pipeline.text_encoder = pipeline.text_encoder.half()
461
+ pipeline.text_encoder = pipeline.text_encoder.to(device)
462
+ load_text_embeddings(pipeline)
463
+ pipeline.text_encoder = pipeline.text_encoder.to('cpu')
464
+
465
+ pipeline = send_to_device(pipeline, device, freeze=True, force_half=False, compile=False, is_sdxl=is_sdxl)
466
+
467
+ wild_card_conversion(model_config)
468
+
469
+ is_init_img_exist = img2img_map != None
470
+ region_condi_list, region_list, ip_adapter_config_map, region2index = region_preprocess(model_config, width, height, length, save_dir, is_init_img_exist, is_sdxl)
471
+
472
+ if controlnet_type_map:
473
+ for c in controlnet_type_map:
474
+ tmp_r = [region2index[r] for r in controlnet_type_map[c]["control_region_list"]]
475
+ controlnet_type_map[c]["control_region_list"] = [r for r in tmp_r if r != -1]
476
+ logger.info(f"{c=} / {controlnet_type_map[c]['control_region_list']}")
477
+
478
+ prompt_map = region_condi_list[0]["prompt_map"]
479
+ prompt_tags = [re.compile(r"[^\w\-, ]").sub("", tag).strip().replace(" ", "-") for tag in prompt_map[list(prompt_map.keys())[0]].split(",")]
480
+ prompt_str = "_".join((prompt_tags[:6]))[:50]
481
+
482
+ torch.manual_seed(0)
483
+
484
+ output = pipeline(
485
+ n_prompt='(nipple:1.4), dudou, shirt, skirt, collar, shawl, hat, sock, sleeve, glove, headgear, back view, monochrome, longbody, lowres, bad anatomy, bad hands, fused fingers, missing fingers, too many fingers, extra digit, fewer digits, cropped, worst quality, low quality, deformed body, bloated, ugly, unrealistic, extra hands and arms',
486
+ num_inference_steps=8,
487
+ guidance_scale=3,
488
+ unet_batch_size=1,
489
+ width=width,
490
+ height=height,
491
+ video_length=length,
492
+ return_dict=False,
493
+ context_frames=16,
494
+ context_stride=1,
495
+ context_overlap=16 // 4,
496
+ context_schedule='composite',
497
+ clip_skip=2,
498
+ controlnet_type_map=controlnet_image_map,
499
+ controlnet_image_map=controlnet_image_map,
500
+ controlnet_ref_map=controlnet_ref_map,
501
+ controlnet_no_shrink=controlnet_no_shrink,
502
+ controlnet_max_samples_on_vram=model_config.controlnet_map["max_samples_on_vram"] if "max_samples_on_vram" in model_config.controlnet_map else 999,
503
+ controlnet_max_models_on_vram=model_config.controlnet_map["max_models_on_vram"] if "max_models_on_vram" in model_config.controlnet_map else 99,
504
+ controlnet_is_loop = model_config.controlnet_map["is_loop"] if "is_loop" in model_config.controlnet_map else True,
505
+ img2img_map=img2img_map,
506
+ ip_adapter_config_map=ip_adapter_config_map,
507
+ region_list=region_list,
508
+ region_condi_list=region_condi_list,
509
+ interpolation_factor=1,
510
+ is_single_prompt_mode=model_config.is_single_prompt_mode,
511
+ apply_lcm_lora=True,
512
+ gradual_latent_map=model_config.gradual_latent_hires_fix_map,
513
+ callback=None,
514
+ callback_steps=None,
515
+ )
516
+
517
+ unload_controlnet_models(pipe=pipeline)
518
+ frames = output.permute(0, 2, 1, 3, 4).squeeze(0)
519
+ frames = frames.mul(255).add_(0.5).clamp_(0, 255).permute(0, 2, 3, 1).to("cpu", torch.uint8).numpy()
520
+ with imageio.get_writer('tmp.mp4', fps=8) as writer:
521
+ for frame in frames: writer.append_data(frame)
522
+
523
+ del pipeline
524
+ torch.cuda.empty_cache()
525
+ model = basicsr.archs.rrdbnet_arch.RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=23, num_grow_ch=32, scale=4)
526
+ upsampler = realesrgan.RealESRGANer(scale=4, model_path='https://huggingface.co/chaowenguo/pal/resolve/main/RealESRGAN_x4plus.pth', model=model, half=True, device='cuda')
527
+ face_enhancer = gfpgan.GFPGANer(model_path='https://huggingface.co/chaowenguo/pal/resolve/main/GFPGANv1.4.pth',upscale=4, bg_upsampler=upsampler)
528
+ with imageio.get_reader('tmp.mp4') as reader, imageio.get_writer('enhance.mp4', fps=reader.get_meta_data()['fps']) as writer:
529
+ for frame in reader: writer.append_data(face_enhancer.enhance(frame)[-1])
530
+
531
+ processor = transformers.AutoProcessor.from_pretrained('chaowenguo/musicgen')
532
+ music = transformers.MusicgenMelodyForConditionalGeneration.from_pretrained('chaowenguo/musicgen', torch_dtype=torch.float16).to('cuda')
533
+ result = []
534
+ for _ in builtins.range(9):
535
+ inputs = processor(audio=result[-1] if result else None, sampling_rate=music.config.audio_encoder.sampling_rate, text='A grand and majestic symphony with soaring strings, powerful brass, and dynamic orchestration. Inspired by Beethoven and Tchaikovsky, featuring dramatic crescendos, delicate woodwind passages, and a triumphant finale. The mood is epic, emotional, and timeless', padding=True, return_tensors='pt').to('cuda')
536
+ inputs = {key:inputs.get(key) if key != 'input_features' else inputs.get(key).to(dtype=music.dtype) for key in inputs}
537
+ audio_values = music.generate(**inputs, max_new_tokens=1000)
538
+ result += audio_values[0, 0].cpu().numpy(),
539
+
540
+ video = moviepy.VideoFileClip('enhance.mp4')
541
+ video.with_audio(moviepy.AudioArrayClip(numpy.concatenate(result)[None].T, 2 * music.config.audio_encoder.sampling_rate)).write_videofile('video.mp4')
542
+ ```
543
+
544
+ ```sh
545
+ # upscale using controlnet (tile, line anime, ip2p, ref)
546
+ # specify the directory of the frame generated in the above step
547
+ # default config path is 'frames_dir/../prompt.json'
548
+ # here, width=512 is specified, but even if the original size is 512, it is effective in increasing detail
549
+ animatediff tile-upscale PATH_TO_TARGET_FRAME_DIRECTORY -c config/prompts/prompt_travel.json -W 512
550
+
551
+ # upscale width to 768 (smoother than tile-upscale)
552
+ animatediff refine PATH_TO_TARGET_FRAME_DIRECTORY -W 768
553
+ # If generation takes an unusually long time, there is not enough vram.
554
+ # Give up large size or reduce the size of the context.
555
+ animatediff refine PATH_TO_TARGET_FRAME_DIRECTORY -W 1024 -C 6
556
+
557
+ # change lora and prompt to make minor changes to the video.
558
+ animatediff refine PATH_TO_TARGET_FRAME_DIRECTORY -c config/prompts/some_minor_changed.json
559
+ ```
560
+
561
+ #### Video Stylization
562
+ ```sh
563
+ cd animatediff-cli-prompt-travel
564
+ venv\Scripts\activate.bat
565
+
566
+ # If you want to use the 'stylize' command, additional installation required
567
+ python -m pip install -e .[stylize]
568
+
569
+ # create config file from src video
570
+ animatediff stylize create-config YOUR_SRC_MOVIE_FILE.mp4
571
+
572
+ # create config file from src video (img2img)
573
+ animatediff stylize create-config YOUR_SRC_MOVIE_FILE.mp4 -i2i
574
+
575
+ # If you have less than 12GB of vram, specify low vram mode
576
+ animatediff stylize create-config YOUR_SRC_MOVIE_FILE.mp4 -lo
577
+
578
+ # Edit the config file by referring to the hint displayed in the log when the command finishes
579
+ # It is recommended to specify a short length for the test run
580
+
581
+ # generate(test run)
582
+ # 16 frames
583
+ animatediff stylize generate STYLYZE_DIR -L 16
584
+ # 16 frames from the 200th frame
585
+ animatediff stylize generate STYLYZE_DIR -L 16 -FO 200
586
+
587
+ # If generation takes an unusually long time, there is not enough vram.
588
+ # Give up large size or reduce the size of the context.
589
+
590
+ # generate
591
+ animatediff stylize generate STYLYZE_DIR
592
+ ```
593
+
594
+ #### Video Stylization with region
595
+ ```sh
596
+ cd animatediff-cli-prompt-travel
597
+ venv\Scripts\activate.bat
598
+
599
+ # If you want to use the 'stylize create-region' command, additional installation required
600
+ python -m pip install -e .[stylize_mask]
601
+
602
+ # [1] create config file from src video
603
+ animatediff stylize create-config YOUR_SRC_MOVIE_FILE.mp4
604
+ # for img2img
605
+ animatediff stylize create-config YOUR_SRC_MOVIE_FILE.mp4 -i2i
606
+
607
+ # If you have less than 12GB of vram, specify low vram mode
608
+ animatediff stylize create-config YOUR_SRC_MOVIE_FILE.mp4 -lo
609
+ ```
610
+ ```json
611
+ # in prompt.json (generated in [1])
612
+ # [2] write the object you want to mask
613
+ # ex.) If you want to mask a person
614
+ "stylize_config": {
615
+ "create_mask": [
616
+ "person"
617
+ ],
618
+ "composite": {
619
+ ```
620
+ ```sh
621
+ # [3] generate region
622
+ animatediff stylize create-region STYLYZE_DIR
623
+
624
+ # If you have less than 12GB of vram, specify low vram mode
625
+ animatediff stylize create-region STYLYZE_DIR -lo
626
+
627
+ ("animatediff stylize create-region -h" for help)
628
+ ```
629
+ ```json
630
+ # in prompt.json (generated in [1])
631
+ [4] edit region_map,prompt,controlnet setting. Put the image you want to reference in the ip adapter directory (both background and region)
632
+ "region_map": {
633
+ "0": {
634
+ "enable": true,
635
+ "mask_dir": "..\\stylize\\2023-10-27T19-43-01-sample-mistoonanime_v20\\r_fg_00_2023-10-27T19-44-08\\00_mask",
636
+ "save_mask": true,
637
+ "is_init_img": false, # <----------
638
+ "condition": {
639
+ "prompt_fixed_ratio": 0.5,
640
+ "head_prompt": "", # <----------
641
+ "prompt_map": { # <----------
642
+ "0": "(masterpiece, best quality:1.2), solo, 1girl, kusanagi motoko, looking at viewer, jacket, leotard, thighhighs, gloves, cleavage"
643
+ },
644
+ "tail_prompt": "", # <----------
645
+ "ip_adapter_map": {
646
+ "enable": true,
647
+ "input_image_dir": "..\\stylize\\2023-10-27T19-43-01-sample-mistoonanime_v20\\r_fg_00_2023-10-27T19-44-08\\00_ipadapter",
648
+ "prompt_fixed_ratio": 0.5,
649
+ "save_input_image": true,
650
+ "resized_to_square": false
651
+ }
652
+ }
653
+ },
654
+ "background": {
655
+ "is_init_img": false, # <----------
656
+ "hint": "background's condition refers to the one in root"
657
+ }
658
+ },
659
+ ```
660
+ ```sh
661
+ # [5] generate
662
+ animatediff stylize generate STYLYZE_DIR
663
+ ```
664
+
665
+
666
+ #### Video Stylization with mask
667
+ ```sh
668
+ cd animatediff-cli-prompt-travel
669
+ venv\Scripts\activate.bat
670
+
671
+ # If you want to use the 'stylize create-mask' command, additional installation required
672
+ python -m pip install -e .[stylize_mask]
673
+
674
+ # [1] create config file from src video
675
+ animatediff stylize create-config YOUR_SRC_MOVIE_FILE.mp4
676
+
677
+ # If you have less than 12GB of vram, specify low vram mode
678
+ animatediff stylize create-config YOUR_SRC_MOVIE_FILE.mp4 -lo
679
+ ```
680
+ ```json
681
+ # in prompt.json (generated in [1])
682
+ # [2] write the object you want to mask
683
+ # ex.) If you want to mask a person
684
+ "stylize_config": {
685
+ "create_mask": [
686
+ "person"
687
+ ],
688
+ "composite": {
689
+ ```
690
+ ```json
691
+ # ex.) person, dog, cat
692
+ "stylize_config": {
693
+ "create_mask": [
694
+ "person", "dog", "cat"
695
+ ],
696
+ "composite": {
697
+ ```
698
+ ```json
699
+ # ex.) boy, girl
700
+ "stylize_config": {
701
+ "create_mask": [
702
+ "boy", "girl"
703
+ ],
704
+ "composite": {
705
+ ```
706
+ ```sh
707
+ # [3] generate mask
708
+ animatediff stylize create-mask STYLYZE_DIR
709
+
710
+ # If you have less than 12GB of vram, specify low vram mode
711
+ animatediff stylize create-mask STYLYZE_DIR -lo
712
+
713
+ # The foreground is output to the following directory (FG_STYLYZE_DIR)
714
+ # STYLYZE_DIR/fg_00_timestamp_str
715
+ # The background is output to the following directory (BG_STYLYZE_DIR)
716
+ # STYLYZE_DIR/bg_timestamp_str
717
+
718
+ ("animatediff stylize create-mask -h" for help)
719
+
720
+ # [4] generate foreground
721
+ animatediff stylize generate FG_STYLYZE_DIR
722
+
723
+ # Same as normal generate.
724
+ # The default is controlnet_tile, so if you want to make a big style change,
725
+ # such as changing the character, change to openpose, etc.
726
+
727
+ # Of course, you can also generate the background here.
728
+ ```
729
+ ```json
730
+ # in prompt.json (generated in [1])
731
+ # [5] composite setup
732
+ # enter the directory containing the frames generated in [4] in "fg_list".
733
+ # In the "mask_prompt" field, write the object you want to extract from the generated foreground frame.
734
+ # If you prepared the mask yourself, specify it in mask_path. If a valid path is set, use it.
735
+ # If the shape has not changed when the foreground is generated, FG_STYLYZE_DIR/00_mask can be used
736
+ # enter the directory containing the background frames separated in [3] in "bg_frame_dir".
737
+ "composite": {
738
+ "fg_list": [
739
+ {
740
+ "path": "FG_STYLYZE_DIR/time_stamp_str/00-341774366206100",
741
+ "mask_path": " absolute path to mask dir (this is optional) ",
742
+ "mask_prompt": "person"
743
+ },
744
+ {
745
+ "path": " absolute path to frame dir ",
746
+ "mask_path": " absolute path to mask dir (this is optional) ",
747
+ "mask_prompt": "cat"
748
+ }
749
+ ],
750
+ "bg_frame_dir": "BG_STYLYZE_DIR/00_controlnet_image/controlnet_tile",
751
+ "hint": ""
752
+ },
753
+ ```
754
+ ```sh
755
+ # [6] composite
756
+ animatediff stylize composite STYLYZE_DIR
757
+
758
+ # By default, "sam hq" and "groundingdino" are used for cropping, but it is not always possible to crop the image well.
759
+ # In that case, you can try "rembg" or "anime-segmentation".
760
+ # However, when using "rembg" and "anime-segmentation", you cannot specify the target text to be clipped.
761
+ animatediff stylize composite STYLYZE_DIR -rem
762
+ animatediff stylize composite STYLYZE_DIR -anim
763
+
764
+ # See help for detailed options. (animatediff stylize composite -h)
765
+ ```
766
+
767
+
768
+ #### Auto config generation for [Stable-Diffusion-Webui-Civitai-Helper](https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper) user
769
+ ```sh
770
+ # This command parses the *.civitai.info files and automatically generates config files
771
+ # See "animatediff civitai2config -h" for details
772
+ animatediff civitai2config PATH_TO_YOUR_A111_LORA_DIR
773
+ ```
774
+ #### Wildcard
775
+ - you can pick wildcard up at [civitai](https://civitai.com/models/23799/freecards). then, put them in /wildcards.
776
+ - Usage is the same as a1111.( \_\_WILDCARDFILENAME\_\_ format,
777
+ ex. \_\_animal\_\_ for animal.txt. \_\_background-color\_\_ for background-color.txt.)
778
+ ```json
779
+ "prompt_map": { # __WILDCARDFILENAME__
780
+ "0": "__character-posture__, __character-gesture__, __character-emotion__, masterpiece, best quality, a beautiful and detailed portriat of muffet, monster girl,((purple body:1.3)), __background__",
781
+ ```
782
+ ### Recommended setting
783
+ - checkpoint : [mistoonAnime_v20](https://civitai.com/models/24149/mistoonanime) for anime, [xxmix9realistic_v40](https://civitai.com/models/47274) for photoreal
784
+ - scheduler : "k_dpmpp_sde"
785
+ - upscale : Enable controlnet_tile and controlnet_ip2p only.
786
+ - lora and ip adapter
787
+
788
+ ### Recommended settings for 8-12 GB of vram
789
+ - max_samples_on_vram : 0
790
+ - max_models_on_vram : 0
791
+ - Generate at lower resolution and upscale to higher resolution with lower the value of context.
792
+ - In the latest version, the amount of vram used during generation has been reduced.
793
+ ```sh
794
+ animatediff generate -c config/prompts/your_config.json -W 384 -H 576 -L 48 -C 16
795
+ animatediff tile-upscale output/2023-08-25T20-00-00-sample-mistoonanime_v20/00-341774366206100 -W 512
796
+ ```
797
+
798
+ ### Limitations
799
+ - lora support is limited. Not all formats can be used!!!
800
+ - It is not possible to specify lora in the prompt.
801
+
802
+ ### Related resources
803
+ - [AnimateDiff](https://github.com/guoyww/AnimateDiff)
804
+ - [ControlNet](https://github.com/lllyasviel/ControlNet)
805
+ - [IP-Adapter](https://github.com/tencent-ailab/IP-Adapter)
806
+ - [DWPose](https://github.com/IDEA-Research/DWPose)
807
+ - [softmax-splatting](https://github.com/sniklaus/softmax-splatting)
808
+ - [sam-hq](https://github.com/SysCV/sam-hq)
809
+ - [Grounded-Segment-Anything](https://github.com/IDEA-Research/Grounded-Segment-Anything)
810
+ - [ProPainter](https://github.com/sczhou/ProPainter)
811
+ - [rembg](https://github.com/danielgatis/rembg)
812
+ - [anime-segmentation](https://github.com/SkyTNT/anime-segmentation)
813
+ - [LCM-LoRA](https://github.com/luosiallen/latent-consistency-model)
814
+ - [ControlNet-LLLite](https://github.com/kohya-ss/sd-scripts/blob/main/docs/train_lllite_README.md)
815
+ - [Gradual Latent hires fix](https://github.com/kohya-ss/sd-scripts/tree/gradual_latent_hires_fix)
816
+ <br>
817
+ <br>
818
+ <br>
819
+ <br>
820
+ <br>
821
+
822
+ Below is the original readme.
823
+
824
+ ----------------------------------------------------------
825
+
826
+
827
+ # animatediff
828
+ [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/neggles/animatediff-cli/main.svg)](https://results.pre-commit.ci/latest/github/neggles/animatediff-cli/main)
829
+
830
+ animatediff refactor, ~~because I can.~~ with significantly lower VRAM usage.
831
+
832
+ Also, **infinite generation length support!** yay!
833
+
834
+ # LoRA loading is ABSOLUTELY NOT IMPLEMENTED YET!
835
+
836
+ This can theoretically run on CPU, but it's not recommended. Should work fine on a GPU, nVidia or otherwise,
837
+ but I haven't tested on non-CUDA hardware. Uses PyTorch 2.0 Scaled-Dot-Product Attention (aka builtin xformers)
838
+ by default, but you can pass `--xformers` to force using xformers if you *really* want.
839
+
840
+ ### How To Use
841
+
842
+ 1. Lie down
843
+ 2. Try not to cry
844
+ 3. Cry a lot
845
+
846
+ ### but for real?
847
+
848
+ Okay, fine. But it's still a little complicated and there's no webUI yet.
849
+
850
+ ```sh
851
+ git clone https://github.com/neggles/animatediff-cli
852
+ cd animatediff-cli
853
+ python3.10 -m venv .venv
854
+ source .venv/bin/activate
855
+ # install Torch. Use whatever your favourite torch version >= 2.0.0 is, but, good luck on non-nVidia...
856
+ python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
857
+ # install the rest of all the things (probably! I may have missed some deps.)
858
+ python -m pip install -e '.[dev]'
859
+ # you should now be able to
860
+ animatediff --help
861
+ # There's a nice pretty help screen with a bunch of info that'll print here.
862
+ ```
863
+
864
+ From here you'll need to put whatever checkpoint you want to use into `data/models/sd`, copy
865
+ one of the prompt configs in `config/prompts`, edit it with your choices of prompt and model (model
866
+ paths in prompt .json files are **relative to `data/`**, e.g. `models/sd/vanilla.safetensors`), and
867
+ off you go.
868
+
869
+ Then it's something like (for an 8GB card):
870
+ ```sh
871
+ animatediff generate -c 'config/prompts/waifu.json' -W 576 -H 576 -L 128 -C 16
872
+ ```
873
+ You may have to drop `-C` down to 8 on cards with less than 8GB VRAM, and you can raise it to 20-24
874
+ on cards with more. 24 is max.
875
+
876
+ N.B. generating 128 frames is _**slow...**_
877
+
878
+ ## RiFE!
879
+
880
+ I have added experimental support for [rife-ncnn-vulkan](https://github.com/nihui/rife-ncnn-vulkan)
881
+ using the `animatediff rife interpolate` command. It has fairly self-explanatory help, and it has
882
+ been tested on Linux, but I've **no idea** if it'll work on Windows.
883
+
884
+ Either way, you'll need ffmpeg installed on your system and present in PATH, and you'll need to
885
+ download the rife-ncnn-vulkan release for your OS of choice from the GitHub repo (above). Unzip it, and
886
+ place the extracted folder at `data/rife/`. You should have a `data/rife/rife-ncnn-vulkan` executable, or `data\rife\rife-ncnn-vulkan.exe` on Windows.
887
+
888
+ You'll also need to reinstall the repo/package with:
889
+ ```py
890
+ python -m pip install -e '.[rife]'
891
+ ```
892
+ or just install `ffmpeg-python` manually yourself.
893
+
894
+ Default is to multiply each frame by 8, turning an 8fps animation into a 64fps one, then encode
895
+ that to a 60fps WebM. (If you pick GIF mode, it'll be 50fps, because GIFs are cursed and encode
896
+ frame durations as 1/100ths of a second).
897
+
898
+ Seems to work pretty well...
899
+
900
+ ## TODO:
901
+
902
+ In no particular order:
903
+
904
+ - [x] Infinite generation length support
905
+ - [x] RIFE support for motion interpolation (`rife-ncnn-vulkan` isn't the greatest implementation)
906
+ - [x] Export RIFE interpolated frames to a video file (webm, mp4, animated webp, hevc mp4, gif, etc.)
907
+ - [x] Generate infinite length animations on a 6-8GB card (at 512x512 with 8-frame context, but hey it'll do)
908
+ - [x] Torch SDP Attention (makes xformers optional)
909
+ - [x] Support for `clip_skip` in prompt config
910
+ - [x] Experimental support for `torch.compile()` (upstream Diffusers bugs slow this down a little but it's still zippy)
911
+ - [x] Batch your generations with `--repeat`! (e.g. `--repeat 10` will repeat all your prompts 10 times)
912
+ - [x] Call the `animatediff.cli.generate()` function from another Python program without reloading the model every time
913
+ - [x] Drag remaining old Diffusers code up to latest (mostly)
914
+ - [ ] Add a webUI (maybe, there are people wrapping this already so maybe not?)
915
+ - [ ] img2img support (start from an existing image and continue)
916
+ - [ ] Stop using custom modules where possible (should be able to use Diffusers for almost all of it)
917
+ - [ ] Automatic generate-then-interpolate-with-RIFE mode
918
+
919
+ ## Credits:
920
+
921
+ see [guoyww/AnimateDiff](https://github.com/guoyww/AnimateDiff) (very little of this is my work)
922
+
923
+ n.b. the copyright notice in `COPYING` is missing the original authors' names, solely because
924
+ the original repo (as of this writing) has no name attached to the license. I have, however,
925
+ used the same license they did (Apache 2.0).
animate/config/.gitignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ /*
2
+ !.gitignore
3
+ !/inference/
4
+ !/prompts/
animate/config/GroundingDINO/GroundingDINO_SwinB_cfg.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ batch_size = 1
2
+ modelname = "groundingdino"
3
+ backbone = "swin_B_384_22k"
4
+ position_embedding = "sine"
5
+ pe_temperatureH = 20
6
+ pe_temperatureW = 20
7
+ return_interm_indices = [1, 2, 3]
8
+ backbone_freeze_keywords = None
9
+ enc_layers = 6
10
+ dec_layers = 6
11
+ pre_norm = False
12
+ dim_feedforward = 2048
13
+ hidden_dim = 256
14
+ dropout = 0.0
15
+ nheads = 8
16
+ num_queries = 900
17
+ query_dim = 4
18
+ num_patterns = 0
19
+ num_feature_levels = 4
20
+ enc_n_points = 4
21
+ dec_n_points = 4
22
+ two_stage_type = "standard"
23
+ two_stage_bbox_embed_share = False
24
+ two_stage_class_embed_share = False
25
+ transformer_activation = "relu"
26
+ dec_pred_bbox_embed_share = True
27
+ dn_box_noise_scale = 1.0
28
+ dn_label_noise_ratio = 0.5
29
+ dn_label_coef = 1.0
30
+ dn_bbox_coef = 1.0
31
+ embed_init_tgt = True
32
+ dn_labelbook_size = 2000
33
+ max_text_len = 256
34
+ text_encoder_type = "bert-base-uncased"
35
+ use_text_enhancer = True
36
+ use_fusion_layer = True
37
+ use_checkpoint = True
38
+ use_transformer_ckpt = True
39
+ use_text_cross_attention = True
40
+ text_dropout = 0.0
41
+ fusion_dropout = 0.0
42
+ fusion_droppath = 0.1
43
+ sub_sentence_present = True
animate/config/GroundingDINO/GroundingDINO_SwinT_OGC.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ batch_size = 1
2
+ modelname = "groundingdino"
3
+ backbone = "swin_T_224_1k"
4
+ position_embedding = "sine"
5
+ pe_temperatureH = 20
6
+ pe_temperatureW = 20
7
+ return_interm_indices = [1, 2, 3]
8
+ backbone_freeze_keywords = None
9
+ enc_layers = 6
10
+ dec_layers = 6
11
+ pre_norm = False
12
+ dim_feedforward = 2048
13
+ hidden_dim = 256
14
+ dropout = 0.0
15
+ nheads = 8
16
+ num_queries = 900
17
+ query_dim = 4
18
+ num_patterns = 0
19
+ num_feature_levels = 4
20
+ enc_n_points = 4
21
+ dec_n_points = 4
22
+ two_stage_type = "standard"
23
+ two_stage_bbox_embed_share = False
24
+ two_stage_class_embed_share = False
25
+ transformer_activation = "relu"
26
+ dec_pred_bbox_embed_share = True
27
+ dn_box_noise_scale = 1.0
28
+ dn_label_noise_ratio = 0.5
29
+ dn_label_coef = 1.0
30
+ dn_bbox_coef = 1.0
31
+ embed_init_tgt = True
32
+ dn_labelbook_size = 2000
33
+ max_text_len = 256
34
+ text_encoder_type = "bert-base-uncased"
35
+ use_text_enhancer = True
36
+ use_fusion_layer = True
37
+ use_checkpoint = True
38
+ use_transformer_ckpt = True
39
+ use_text_cross_attention = True
40
+ text_dropout = 0.0
41
+ fusion_dropout = 0.0
42
+ fusion_droppath = 0.1
43
+ sub_sentence_present = True
animate/config/inference/default.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "unet_additional_kwargs": {
3
+ "unet_use_cross_frame_attention": false,
4
+ "unet_use_temporal_attention": false,
5
+ "use_motion_module": true,
6
+ "motion_module_resolutions": [1, 2, 4, 8],
7
+ "motion_module_mid_block": false,
8
+ "motion_module_decoder_only": false,
9
+ "motion_module_type": "Vanilla",
10
+ "motion_module_kwargs": {
11
+ "num_attention_heads": 8,
12
+ "num_transformer_block": 1,
13
+ "attention_block_types": ["Temporal_Self", "Temporal_Self"],
14
+ "temporal_position_encoding": true,
15
+ "temporal_position_encoding_max_len": 24,
16
+ "temporal_attention_dim_div": 1
17
+ }
18
+ },
19
+ "noise_scheduler_kwargs": {
20
+ "num_train_timesteps": 1000,
21
+ "beta_start": 0.00085,
22
+ "beta_end": 0.012,
23
+ "beta_schedule": "linear",
24
+ "steps_offset": 1,
25
+ "clip_sample": false
26
+ }
27
+ }
animate/config/inference/motion_sdxl.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "unet_additional_kwargs": {
3
+ "unet_use_temporal_attention": false,
4
+ "use_motion_module": true,
5
+ "motion_module_resolutions": [1, 2, 4, 8],
6
+ "motion_module_mid_block": false,
7
+ "motion_module_type": "Vanilla",
8
+ "motion_module_kwargs": {
9
+ "num_attention_heads": 8,
10
+ "num_transformer_block": 1,
11
+ "attention_block_types": ["Temporal_Self", "Temporal_Self"],
12
+ "temporal_position_encoding": true,
13
+ "temporal_position_encoding_max_len": 32,
14
+ "temporal_attention_dim_div": 1
15
+ }
16
+ },
17
+ "noise_scheduler_kwargs": {
18
+ "num_train_timesteps": 1000,
19
+ "beta_start": 0.00085,
20
+ "beta_end": 0.020,
21
+ "beta_schedule": "scaled_linear"
22
+ }
23
+ }
animate/config/inference/motion_v2.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "unet_additional_kwargs": {
3
+ "use_inflated_groupnorm": true,
4
+ "unet_use_cross_frame_attention": false,
5
+ "unet_use_temporal_attention": false,
6
+ "use_motion_module": true,
7
+ "motion_module_resolutions": [1, 2, 4, 8],
8
+ "motion_module_mid_block": true,
9
+ "motion_module_decoder_only": false,
10
+ "motion_module_type": "Vanilla",
11
+ "motion_module_kwargs": {
12
+ "num_attention_heads": 8,
13
+ "num_transformer_block": 1,
14
+ "attention_block_types": ["Temporal_Self", "Temporal_Self"],
15
+ "temporal_position_encoding": true,
16
+ "temporal_position_encoding_max_len": 32,
17
+ "temporal_attention_dim_div": 1
18
+ }
19
+ },
20
+ "noise_scheduler_kwargs": {
21
+ "num_train_timesteps": 1000,
22
+ "beta_start": 0.00085,
23
+ "beta_end": 0.012,
24
+ "beta_schedule": "linear",
25
+ "steps_offset": 1,
26
+ "clip_sample": false
27
+ }
28
+ }
animate/config/inference/sd15-unet.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_size": 64,
3
+ "in_channels": 4,
4
+ "out_channels": 4,
5
+ "center_input_sample": false,
6
+ "flip_sin_to_cos": true,
7
+ "freq_shift": 0,
8
+ "down_block_types": [
9
+ "CrossAttnDownBlock2D",
10
+ "CrossAttnDownBlock2D",
11
+ "CrossAttnDownBlock2D",
12
+ "DownBlock2D"
13
+ ],
14
+ "mid_block_type": "UNetMidBlock2DCrossAttn",
15
+ "up_block_types": [
16
+ "UpBlock2D",
17
+ "CrossAttnUpBlock2D",
18
+ "CrossAttnUpBlock2D",
19
+ "CrossAttnUpBlock2D"
20
+ ],
21
+ "only_cross_attention": false,
22
+ "block_out_channels": [320, 640, 1280, 1280],
23
+ "layers_per_block": 2,
24
+ "downsample_padding": 1,
25
+ "mid_block_scale_factor": 1,
26
+ "act_fn": "silu",
27
+ "norm_num_groups": 32,
28
+ "norm_eps": 1e-5,
29
+ "cross_attention_dim": 768,
30
+ "transformer_layers_per_block": 1,
31
+ "encoder_hid_dim": null,
32
+ "encoder_hid_dim_type": null,
33
+ "attention_head_dim": 8,
34
+ "num_attention_heads": null,
35
+ "dual_cross_attention": false,
36
+ "use_linear_projection": false,
37
+ "class_embed_type": null,
38
+ "addition_embed_type": null,
39
+ "addition_time_embed_dim": null,
40
+ "num_class_embeds": null,
41
+ "upcast_attention": false,
42
+ "resnet_time_scale_shift": "default",
43
+ "resnet_skip_time_act": false,
44
+ "resnet_out_scale_factor": 1.0,
45
+ "time_embedding_type": "positional",
46
+ "time_embedding_dim": null,
47
+ "time_embedding_act_fn": null,
48
+ "timestep_post_act": null,
49
+ "time_cond_proj_dim": null,
50
+ "conv_in_kernel": 3,
51
+ "conv_out_kernel": 3,
52
+ "projection_class_embeddings_input_dim": null,
53
+ "class_embeddings_concat": false,
54
+ "mid_block_only_cross_attention": null,
55
+ "cross_attention_norm": null,
56
+ "addition_embed_type_num_heads": 64,
57
+ "_use_default_values": [
58
+ "transformer_layers_per_block",
59
+ "use_linear_projection",
60
+ "num_class_embeds",
61
+ "addition_embed_type",
62
+ "cross_attention_norm",
63
+ "conv_out_kernel",
64
+ "encoder_hid_dim_type",
65
+ "projection_class_embeddings_input_dim",
66
+ "num_attention_heads",
67
+ "only_cross_attention",
68
+ "class_embed_type",
69
+ "resnet_time_scale_shift",
70
+ "addition_embed_type_num_heads",
71
+ "timestep_post_act",
72
+ "mid_block_type",
73
+ "mid_block_only_cross_attention",
74
+ "time_embedding_type",
75
+ "addition_time_embed_dim",
76
+ "time_embedding_dim",
77
+ "encoder_hid_dim",
78
+ "resnet_skip_time_act",
79
+ "conv_in_kernel",
80
+ "upcast_attention",
81
+ "dual_cross_attention",
82
+ "resnet_out_scale_factor",
83
+ "time_cond_proj_dim",
84
+ "class_embeddings_concat",
85
+ "time_embedding_act_fn"
86
+ ],
87
+ "_class_name": "UNet2DConditionModel",
88
+ "_diffusers_version": "0.6.0"
89
+ }
animate/config/inference/sd15-unet3d.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_size": 64,
3
+ "in_channels": 4,
4
+ "out_channels": 4,
5
+ "center_input_sample": false,
6
+ "flip_sin_to_cos": true,
7
+ "freq_shift": 0,
8
+ "down_block_types": [
9
+ "CrossAttnDownBlock3D",
10
+ "CrossAttnDownBlock3D",
11
+ "CrossAttnDownBlock3D",
12
+ "DownBlock3D"
13
+ ],
14
+ "mid_block_type": "UNetMidBlock3DCrossAttn",
15
+ "up_block_types": [
16
+ "UpBlock3D",
17
+ "CrossAttnUpBlock3D",
18
+ "CrossAttnUpBlock3D",
19
+ "CrossAttnUpBlock3D"
20
+ ],
21
+ "only_cross_attention": false,
22
+ "block_out_channels": [320, 640, 1280, 1280],
23
+ "layers_per_block": 2,
24
+ "downsample_padding": 1,
25
+ "mid_block_scale_factor": 1,
26
+ "act_fn": "silu",
27
+ "norm_num_groups": 32,
28
+ "norm_eps": 1e-5,
29
+ "cross_attention_dim": 768,
30
+ "attention_head_dim": 8,
31
+ "dual_cross_attention": false,
32
+ "use_linear_projection": false,
33
+ "class_embed_type": null,
34
+ "num_class_embeds": null,
35
+ "upcast_attention": false,
36
+ "resnet_time_scale_shift": "default",
37
+ "use_motion_module": true,
38
+ "motion_module_resolutions": [1, 2, 4, 8],
39
+ "motion_module_mid_block": false,
40
+ "motion_module_decoder_only": false,
41
+ "motion_module_type": "Vanilla",
42
+ "motion_module_kwargs": {
43
+ "num_attention_heads": 8,
44
+ "num_transformer_block": 1,
45
+ "attention_block_types": ["Temporal_Self", "Temporal_Self"],
46
+ "temporal_position_encoding": true,
47
+ "temporal_position_encoding_max_len": 24,
48
+ "temporal_attention_dim_div": 1
49
+ },
50
+ "unet_use_cross_frame_attention": false,
51
+ "unet_use_temporal_attention": false,
52
+ "_use_default_values": [
53
+ "use_linear_projection",
54
+ "mid_block_type",
55
+ "upcast_attention",
56
+ "dual_cross_attention",
57
+ "num_class_embeds",
58
+ "only_cross_attention",
59
+ "class_embed_type",
60
+ "resnet_time_scale_shift"
61
+ ],
62
+ "_class_name": "UNet3DConditionModel",
63
+ "_diffusers_version": "0.6.0"
64
+ }
animate/config/prompts/.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ *
2
+ !.gitignore
animate/config/prompts/01-ToonYou.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ToonYou",
3
+ "base": "",
4
+ "path": "models/sd/toonyou_beta3.safetensors",
5
+ "motion_module": "models/motion-module/mm_sd_v15.ckpt",
6
+ "compile": false,
7
+ "seed": [
8
+ 10788741199826055000, 6520604954829637000, 6519455744612556000,
9
+ 16372571278361864000
10
+ ],
11
+ "scheduler": "k_dpmpp",
12
+ "steps": 30,
13
+ "guidance_scale": 8.5,
14
+ "clip_skip": 2,
15
+ "prompt": [
16
+ "1girl, solo, best quality, masterpiece, looking at viewer, purple hair, orange hair, gradient hair, blurry background, upper body, dress, flower print, spaghetti strap, bare shoulders",
17
+ "1girl, solo, masterpiece, best quality, cherry blossoms, hanami, pink flower, white flower, spring season, wisteria, petals, flower, plum blossoms, outdoors, falling petals, white hair, black eyes,",
18
+ "1girl, solo, best quality, masterpiece, looking at viewer, purple hair, orange hair, gradient hair, blurry background, upper body, dress, flower print, spaghetti strap, bare shoulders",
19
+ "1girl, solo, best quality, masterpiece, cloudy sky, dandelion, contrapposto, alternate hairstyle"
20
+ ],
21
+ "n_prompt": [
22
+ "worst quality, low quality, cropped, lowres, text, jpeg artifacts, multiple view"
23
+ ]
24
+ }
animate/config/prompts/02-Lyriel.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Lyriel",
3
+ "base": "",
4
+ "path": "models/sd/lyriel_v16.safetensors",
5
+ "motion_module": "models/motion-module/mm_sd_v15.ckpt",
6
+ "seed": [
7
+ 10917152860782582000, 6399018107401806000, 15875751942533906000,
8
+ 6653196880059937000
9
+ ],
10
+ "scheduler": "k_dpmpp",
11
+ "steps": 25,
12
+ "guidance_scale": 7.5,
13
+ "prompt": [
14
+ "dark shot, epic realistic, portrait of halo, sunglasses, blue eyes, tartan scarf, white hair by atey ghailan, by greg rutkowski, by greg tocchini, by james gilleard, by joe fenton, by kaethe butcher, gradient yellow, black, brown and magenta color scheme, grunge aesthetic!!! graffiti tag wall background, art by greg rutkowski and artgerm, soft cinematic light, adobe lightroom, photolab, hdr, intricate, highly detailed, depth of field, faded, neutral colors, hdr, muted colors, hyperdetailed, artstation, cinematic, warm lights, dramatic light, intricate details, complex background, rutkowski, teal and orange",
15
+ "A forbidden castle high up in the mountains, pixel art, intricate details2, hdr, intricate details, hyperdetailed5, natural skin texture, hyperrealism, soft light, sharp, game art, key visual, surreal",
16
+ "dark theme, medieval portrait of a man sharp features, grim, cold stare, dark colors, Volumetric lighting, baroque oil painting by Greg Rutkowski, Artgerm, WLOP, Alphonse Mucha dynamic lighting hyperdetailed intricately detailed, hdr, muted colors, complex background, hyperrealism, hyperdetailed, amandine van ray",
17
+ "As I have gone alone in there and with my treasures bold, I can keep my secret where and hint of riches new and old. Begin it where warm waters halt and take it in a canyon down, not far but too far to walk, put in below the home of brown."
18
+ ],
19
+ "n_prompt": [
20
+ "3d, cartoon, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, artist name, young, loli, elf, 3d, illustration",
21
+ "3d, cartoon, anime, sketches, worst quality, low quality, normal quality, lowres, normal quality, monochrome, grayscale, skin spots, acnes, skin blemishes, bad anatomy, girl, loli, young, large breasts, red eyes, muscular",
22
+ "dof, grayscale, black and white, bw, 3d, cartoon, anime, sketches, worst quality, low quality, normal quality, lowres, normal quality, monochrome, grayscale, skin spots, acnes, skin blemishes, bad anatomy, girl, loli, young, large breasts, red eyes, muscular,badhandsv5-neg, By bad artist -neg 1, monochrome",
23
+ "holding an item, cowboy, hat, cartoon, 3d, disfigured, bad art, deformed,extra limbs,close up,b&w, wierd colors, blurry, duplicate, morbid, mutilated, [out of frame], extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, ugly, blurry, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, out of frame, ugly, extra limbs, bad anatomy, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, mutated hands, fused fingers, too many fingers, long neck, Photoshop, video game, ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, mutation, mutated, extra limbs, extra legs, extra arms, disfigured, deformed, cross-eye, body out of frame, blurry, bad art, bad anatomy, 3d render"
24
+ ]
25
+ }
animate/config/prompts/03-RcnzCartoon.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "RcnzCartoon",
3
+ "base": "",
4
+ "path": "models/sd/rcnzCartoon3d_v10.safetensors",
5
+ "motion_module": "models/motion-module/mm_sd_v15.ckpt",
6
+ "seed": [
7
+ 16931037867122268000, 2094308009433392000, 4292543217695451000,
8
+ 15572665120852310000
9
+ ],
10
+ "scheduler": "k_dpmpp",
11
+ "steps": 25,
12
+ "guidance_scale": 7.5,
13
+ "prompt": [
14
+ "Jane Eyre with headphones, natural skin texture,4mm,k textures, soft cinematic light, adobe lightroom, photolab, hdr, intricate, elegant, highly detailed, sharp focus, cinematic look, soothing tones, insane details, intricate details, hyperdetailed, low contrast, soft cinematic light, dim colors, exposure blend, hdr, faded",
15
+ "close up Portrait photo of muscular bearded guy in a worn mech suit, light bokeh, intricate, steel metal [rust], elegant, sharp focus, photo by greg rutkowski, soft lighting, vibrant colors, masterpiece, streets, detailed face",
16
+ "absurdres, photorealistic, masterpiece, a 30 year old man with gold framed, aviator reading glasses and a black hooded jacket and a beard, professional photo, a character portrait, altermodern, detailed eyes, detailed lips, detailed face, grey eyes",
17
+ "a golden labrador, warm vibrant colours, natural lighting, dappled lighting, diffused lighting, absurdres, highres,k, uhd, hdr, rtx, unreal, octane render, RAW photo, photorealistic, global illumination, subsurface scattering"
18
+ ],
19
+ "n_prompt": [
20
+ "deformed, distorted, disfigured, poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, mutated hands and fingers, disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation",
21
+ "nude, cross eyed, tongue, open mouth, inside, 3d, cartoon, anime, sketches, worst quality, low quality, normal quality, lowres, normal quality, monochrome, grayscale, skin spots, acnes, skin blemishes, bad anatomy, red eyes, muscular",
22
+ "easynegative, cartoon, anime, sketches, necklace, earrings worst quality, low quality, normal quality, bad anatomy, bad hands, shiny skin, error, missing fingers, extra digit, fewer digits, jpeg artifacts, signature, watermark, username, blurry, chubby, anorectic, bad eyes, old, wrinkled skin, red skin, photograph By bad artist -neg, big eyes, muscular face,",
23
+ "beard, EasyNegative, lowres, chromatic aberration, depth of field, motion blur, blurry, bokeh, bad quality, worst quality, multiple arms, badhand"
24
+ ]
25
+ }
animate/config/prompts/04-MajicMix.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "MajicMix",
3
+ "base": "",
4
+ "path": "models/sd/majicmixRealistic_v5Preview.safetensors",
5
+ "motion_module": "models/motion-module/mm_sd_v15.ckpt",
6
+ "seed": [
7
+ 1572448948722921000, 1099474677988590700, 6488833139725636000,
8
+ 18339859844376519000
9
+ ],
10
+ "scheduler": "k_dpmpp",
11
+ "steps": 25,
12
+ "guidance_scale": 7.5,
13
+ "prompt": [
14
+ "1girl, offshoulder, light smile, shiny skin best quality, masterpiece, photorealistic",
15
+ "best quality, masterpiece, photorealistic, 1boy, 50 years old beard, dramatic lighting",
16
+ "best quality, masterpiece, photorealistic, 1girl, light smile, shirt with collars, waist up, dramatic lighting, from below",
17
+ "male, man, beard, bodybuilder, skinhead,cold face, tough guy, cowboyshot, tattoo, french windows, luxury hotel masterpiece, best quality, photorealistic"
18
+ ],
19
+ "n_prompt": [
20
+ "ng_deepnegative_v1_75t, badhandv4, worst quality, low quality, normal quality, lowres, bad anatomy, bad hands, watermark, moles",
21
+ "nsfw, ng_deepnegative_v1_75t,badhandv4, worst quality, low quality, normal quality, lowres,watermark, monochrome",
22
+ "nsfw, ng_deepnegative_v1_75t,badhandv4, worst quality, low quality, normal quality, lowres,watermark, monochrome",
23
+ "nude, nsfw, ng_deepnegative_v1_75t, badhandv4, worst quality, low quality, normal quality, lowres, bad anatomy, bad hands, monochrome, grayscale watermark, moles, people"
24
+ ]
25
+ }
animate/config/prompts/05-RealisticVision.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "RealisticVision",
3
+ "base": "",
4
+ "path": "models/sd/realisticVisionV20_v20.safetensors",
5
+ "motion_module": "models/motion-module/mm_sd_v15.ckpt",
6
+ "seed": [
7
+ 5658137986800322000, 12099779162349365000, 10499524853910854000,
8
+ 16768009035333712000
9
+ ],
10
+ "scheduler": "k_dpmpp",
11
+ "steps": 25,
12
+ "guidance_scale": 7.5,
13
+ "prompt": [
14
+ "b&w photo of 42 y.o man in black clothes, bald, face, half body, body, high detailed skin, skin pores, coastline, overcast weather, wind, waves, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3",
15
+ "close up photo of a rabbit, forest, haze, halation, bloom, dramatic atmosphere, centred, rule of thirds, 200mm 1.4f macro shot",
16
+ "photo of coastline, rocks, storm weather, wind, waves, lightning, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3",
17
+ "night, b&w photo of old house, post apocalypse, forest, storm weather, wind, rocks, 8k uhd, dslr, soft lighting, high quality, film grain"
18
+ ],
19
+ "n_prompt": [
20
+ "semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck",
21
+ "semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck",
22
+ "blur, haze, deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers, deformed, distorted, disfigured, poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation",
23
+ "blur, haze, deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, art, mutated hands and fingers, deformed, distorted, disfigured, poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation"
24
+ ]
25
+ }
animate/config/prompts/06-Tusun.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Tusun",
3
+ "base": "models/sd/moonfilm_reality20.safetensors",
4
+ "path": "models/sd/TUSUN.safetensors",
5
+ "motion_module": "models/motion-module/mm_sd_v15.ckpt",
6
+ "seed": [
7
+ 10154078483724687000, 2664393535095473700, 4231566096207623000,
8
+ 1713349740448094500
9
+ ],
10
+ "scheduler": "k_dpmpp",
11
+ "steps": 25,
12
+ "guidance_scale": 7.5,
13
+ "lora_alpha": 0.6,
14
+ "prompt": [
15
+ "tusuncub with its mouth open, blurry, open mouth, fangs, photo background, looking at viewer, tongue, full body, solo, cute and lovely, Beautiful and realistic eye details, perfect anatomy, Nonsense, pure background, Centered-Shot, realistic photo, photograph, 4k, hyper detailed, DSLR, 24 Megapixels, 8mm Lens, Full Frame, film grain, Global Illumination, studio Lighting, Award Winning Photography, diffuse reflection, ray tracing",
16
+ "cute tusun with a blurry background, black background, simple background, signature, face, solo, cute and lovely, Beautiful and realistic eye details, perfect anatomy, Nonsense, pure background, Centered-Shot, realistic photo, photograph, 4k, hyper detailed, DSLR, 24 Megapixels, 8mm Lens, Full Frame, film grain, Global Illumination, studio Lighting, Award Winning Photography, diffuse reflection, ray tracing",
17
+ "cut tusuncub walking in the snow, blurry, looking at viewer, depth of field, blurry background, full body, solo, cute and lovely, Beautiful and realistic eye details, perfect anatomy, Nonsense, pure background, Centered-Shot, realistic photo, photograph, 4k, hyper detailed, DSLR, 24 Megapixels, 8mm Lens, Full Frame, film grain, Global Illumination, studio Lighting, Award Winning Photography, diffuse reflection, ray tracing",
18
+ "character design, cyberpunk tusun kitten wearing astronaut suit, sci-fic, realistic eye color and details, fluffy, big head, science fiction, communist ideology, Cyborg, fantasy, intense angle, soft lighting, photograph, 4k, hyper detailed, portrait wallpaper, realistic, photo-realistic, DSLR, 24 Megapixels, Full Frame, vibrant details, octane render, finely detail, best quality, incredibly absurdres, robotic parts, rim light, vibrant details, luxurious cyberpunk, hyperrealistic, cable electric wires, microchip, full body"
19
+ ],
20
+ "n_prompt": [
21
+ "worst quality, low quality, deformed, distorted, disfigured, bad eyes, bad anatomy, disconnected limbs, wrong body proportions, low quality, worst quality, text, watermark, signatre, logo, illustration, painting, cartoons, ugly, easy_negative"
22
+ ]
23
+ }
animate/config/prompts/07-FilmVelvia.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "FilmVelvia",
3
+ "base": "models/sd/majicmixRealistic_v4.safetensors",
4
+ "path": "models/sd/FilmVelvia2.safetensors",
5
+ "motion_module": "models/motion-module/mm_sd_v15.ckpt",
6
+ "seed": [
7
+ 358675358833372800, 3519455280971924000, 11684545350557985000,
8
+ 8696855302100400000
9
+ ],
10
+ "scheduler": "k_dpmpp",
11
+ "steps": 25,
12
+ "guidance_scale": 7.5,
13
+ "lora_alpha": 0.6,
14
+ "prompt": [
15
+ "a woman standing on the side of a road at night,girl, long hair, motor vehicle, car, looking at viewer, ground vehicle, night, hands in pockets, blurry background, coat, black hair, parted lips, bokeh, jacket, brown hair, outdoors, red lips, upper body, artist name",
16
+ ", dark shot,0mm, portrait quality of a arab man worker,boy, wasteland that stands out vividly against the background of the desert, barren landscape, closeup, moles skin, soft light, sharp, exposure blend, medium shot, bokeh, hdr, high contrast, cinematic, teal and orange5, muted colors, dim colors, soothing tones, low saturation, hyperdetailed, noir",
17
+ "fashion photography portrait of 1girl, offshoulder, fluffy short hair, soft light, rim light, beautiful shadow, low key, photorealistic, raw photo, natural skin texture, realistic eye and face details, hyperrealism, ultra high res, 4K, Best quality, masterpiece, necklace, cleavage, in the dark",
18
+ "In this lighthearted portrait, a woman is dressed as a fierce warrior, armed with an arsenal of paintbrushes and palette knives. Her war paint is composed of thick, vibrant strokes of color, and her armor is made of paint tubes and paint-splattered canvases. She stands victoriously atop a mountain of conquered blank canvases, with a beautiful, colorful landscape behind her, symbolizing the power of art and creativity. bust Portrait, close-up, Bright and transparent scene lighting, "
19
+ ],
20
+ "n_prompt": [
21
+ "cartoon, anime, sketches,worst quality, low quality, deformed, distorted, disfigured, bad eyes, wrong lips, weird mouth, bad teeth, mutated hands and fingers, bad anatomy, wrong anatomy, amputation, extra limb, missing limb, floating limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg",
22
+ "cartoon, anime, sketches,worst quality, low quality, deformed, distorted, disfigured, bad eyes, wrong lips, weird mouth, bad teeth, mutated hands and fingers, bad anatomy, wrong anatomy, amputation, extra limb, missing limb, floating limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg",
23
+ "wrong white balance, dark, cartoon, anime, sketches,worst quality, low quality, deformed, distorted, disfigured, bad eyes, wrong lips, weird mouth, bad teeth, mutated hands and fingers, bad anatomy, wrong anatomy, amputation, extra limb, missing limb, floating limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg",
24
+ "wrong white balance, dark, cartoon, anime, sketches,worst quality, low quality, deformed, distorted, disfigured, bad eyes, wrong lips, weird mouth, bad teeth, mutated hands and fingers, bad anatomy, wrong anatomy, amputation, extra limb, missing limb, floating limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg"
25
+ ]
26
+ }
animate/config/prompts/08-GhibliBackground.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "GhibliBackground",
3
+ "base": "models/sd/CounterfeitV30_25.safetensors",
4
+ "path": "models/sd/lora_Ghibli_n3.safetensors",
5
+ "motion_module": "models/motion-module/mm_sd_v15.ckpt",
6
+ "seed": [
7
+ 8775748474469046000, 5893874876080607000, 11911465742147697000,
8
+ 12437784838692000000
9
+ ],
10
+ "scheduler": "k_dpmpp",
11
+ "steps": 25,
12
+ "guidance_scale": 7.5,
13
+ "lora_alpha": 1,
14
+ "prompt": [
15
+ "best quality,single build,architecture, blue_sky, building,cloudy_sky, day, fantasy, fence, field, house, build,architecture,landscape, moss, outdoors, overgrown, path, river, road, rock, scenery, sky, sword, tower, tree, waterfall",
16
+ "black_border, building, city, day, fantasy, ice, landscape, letterboxed, mountain, ocean, outdoors, planet, scenery, ship, snow, snowing, water, watercraft, waterfall, winter",
17
+ ",mysterious sea area, fantasy,build,concept",
18
+ "Tomb Raider,Scenography,Old building"
19
+ ],
20
+ "n_prompt": [
21
+ "easynegative,bad_construction,bad_structure,bad_wail,bad_windows,blurry,cloned_window,cropped,deformed,disfigured,error,extra_windows,extra_chimney,extra_door,extra_structure,extra_frame,fewer_digits,fused_structure,gross_proportions,jpeg_artifacts,long_roof,low_quality,structure_limbs,missing_windows,missing_doors,missing_roofs,mutated_structure,mutation,normal_quality,out_of_frame,owres,poorly_drawn_structure,poorly_drawn_house,signature,text,too_many_windows,ugly,username,uta,watermark,worst_quality"
22
+ ]
23
+ }
animate/config/prompts/concat_2horizontal.bat ADDED
@@ -0,0 +1 @@
 
 
1
+ ffmpeg -i %1 -i %2 -filter_complex "[0:v][1:v]hstack=inputs=2[v]" -map "[v]" -crf 15 2horizontal.mp4
animate/config/prompts/copy_png.bat ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ setlocal enableDelayedExpansion
3
+ FOR /l %%N in (1,1,%~n1) do (
4
+ set "n=00000%%N"
5
+ set "TEST=!n:~-5!
6
+ echo !TEST!
7
+ copy /y %1 !TEST!.png
8
+ )
9
+
10
+ ren %1 00000.png
11
+
animate/config/prompts/ignore_tokens.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ motion_blur
2
+ blurry
3
+ realistic
4
+ depth_of_field
animate/config/prompts/img2img_sample.json ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "sample",
3
+ "path": "share/Stable-diffusion/mistoonAnime_v20.safetensors",
4
+ "motion_module": "models/motion-module/mm_sd_v15_v2.ckpt",
5
+ "compile": false,
6
+ "seed": [
7
+ 12345
8
+ ],
9
+ "scheduler": "k_dpmpp_sde",
10
+ "steps": 20,
11
+ "guidance_scale": 10,
12
+ "unet_batch_size": 1,
13
+ "clip_skip": 2,
14
+ "prompt_fixed_ratio": 0.5,
15
+ "head_prompt": "(style of studio ghibli:1.2), (masterpiece, best quality)",
16
+ "prompt_map": {
17
+ "0": "forest, water, river, outdoors,"
18
+ },
19
+ "tail_prompt": "",
20
+ "n_prompt": [
21
+ "(worst quality:2), (bad quality:2), (normal quality:2), lowers, bad anatomy, bad hands, (multiple views),"
22
+ ],
23
+ "lora_map": {
24
+ "share/models/Lora/Ghibli_v6.safetensors": 1.0
25
+ },
26
+ "motion_lora_map": {
27
+ },
28
+ "ip_adapter_map": {
29
+ "enable": false,
30
+ "input_image_dir": "",
31
+ "prompt_fixed_ratio": 0.5,
32
+ "save_input_image": true,
33
+ "resized_to_square": false,
34
+ "scale": 0.5,
35
+ "is_plus_face": false,
36
+ "is_plus": true,
37
+ "is_light": false
38
+ },
39
+ "img2img_map":{
40
+ "enable": true,
41
+ "init_img_dir" : "init_imgs/sample0",
42
+ "save_init_image": true,
43
+ "denoising_strength" : 0.85
44
+ },
45
+ "controlnet_map": {
46
+ "input_image_dir" : "",
47
+ "max_samples_on_vram": 0,
48
+ "max_models_on_vram" : 1,
49
+ "save_detectmap": true,
50
+ "preprocess_on_gpu": true,
51
+ "is_loop": true,
52
+
53
+ "controlnet_tile":{
54
+ "enable": true,
55
+ "use_preprocessor":true,
56
+ "preprocessor":{
57
+ "type" : "none",
58
+ "param":{
59
+ }
60
+ },
61
+ "guess_mode":false,
62
+ "controlnet_conditioning_scale": 1.0,
63
+ "control_guidance_start": 0.0,
64
+ "control_guidance_end": 1.0,
65
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
66
+ },
67
+ "controlnet_ip2p":{
68
+ "enable": true,
69
+ "use_preprocessor":true,
70
+ "guess_mode":false,
71
+ "controlnet_conditioning_scale": 1.0,
72
+ "control_guidance_start": 0.0,
73
+ "control_guidance_end": 1.0,
74
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
75
+ },
76
+ "controlnet_lineart_anime":{
77
+ "enable": true,
78
+ "use_preprocessor":true,
79
+ "guess_mode":false,
80
+ "controlnet_conditioning_scale": 1.0,
81
+ "control_guidance_start": 0.0,
82
+ "control_guidance_end": 1.0,
83
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
84
+ },
85
+ "controlnet_openpose":{
86
+ "enable": true,
87
+ "use_preprocessor":true,
88
+ "guess_mode":false,
89
+ "controlnet_conditioning_scale": 1.0,
90
+ "control_guidance_start": 0.0,
91
+ "control_guidance_end": 1.0,
92
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
93
+ },
94
+ "controlnet_softedge":{
95
+ "enable": true,
96
+ "use_preprocessor":true,
97
+ "preprocessor":{
98
+ "type" : "softedge_pidsafe",
99
+ "param":{
100
+ }
101
+ },
102
+ "guess_mode":false,
103
+ "controlnet_conditioning_scale": 1.0,
104
+ "control_guidance_start": 0.0,
105
+ "control_guidance_end": 1.0,
106
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
107
+ },
108
+ "controlnet_shuffle": {
109
+ "enable": true,
110
+ "use_preprocessor":true,
111
+ "guess_mode":false,
112
+ "controlnet_conditioning_scale": 1.0,
113
+ "control_guidance_start": 0.0,
114
+ "control_guidance_end": 1.0,
115
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
116
+ },
117
+ "controlnet_depth": {
118
+ "enable": true,
119
+ "use_preprocessor":true,
120
+ "guess_mode":false,
121
+ "controlnet_conditioning_scale": 1.0,
122
+ "control_guidance_start": 0.0,
123
+ "control_guidance_end": 1.0,
124
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
125
+ },
126
+ "controlnet_canny": {
127
+ "enable": true,
128
+ "use_preprocessor":true,
129
+ "guess_mode":false,
130
+ "controlnet_conditioning_scale": 1.0,
131
+ "control_guidance_start": 0.0,
132
+ "control_guidance_end": 1.0,
133
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
134
+ },
135
+ "controlnet_inpaint": {
136
+ "enable": true,
137
+ "use_preprocessor":true,
138
+ "guess_mode":false,
139
+ "controlnet_conditioning_scale": 1.0,
140
+ "control_guidance_start": 0.0,
141
+ "control_guidance_end": 1.0,
142
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
143
+ },
144
+ "controlnet_lineart": {
145
+ "enable": true,
146
+ "use_preprocessor":true,
147
+ "guess_mode":false,
148
+ "controlnet_conditioning_scale": 1.0,
149
+ "control_guidance_start": 0.0,
150
+ "control_guidance_end": 1.0,
151
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
152
+ },
153
+ "controlnet_mlsd": {
154
+ "enable": true,
155
+ "use_preprocessor":true,
156
+ "guess_mode":false,
157
+ "controlnet_conditioning_scale": 1.0,
158
+ "control_guidance_start": 0.0,
159
+ "control_guidance_end": 1.0,
160
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
161
+ },
162
+ "controlnet_normalbae": {
163
+ "enable": true,
164
+ "use_preprocessor":true,
165
+ "guess_mode":false,
166
+ "controlnet_conditioning_scale": 1.0,
167
+ "control_guidance_start": 0.0,
168
+ "control_guidance_end": 1.0,
169
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
170
+ },
171
+ "controlnet_scribble": {
172
+ "enable": true,
173
+ "use_preprocessor":true,
174
+ "guess_mode":false,
175
+ "controlnet_conditioning_scale": 1.0,
176
+ "control_guidance_start": 0.0,
177
+ "control_guidance_end": 1.0,
178
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
179
+ },
180
+ "controlnet_seg": {
181
+ "enable": true,
182
+ "use_preprocessor":true,
183
+ "guess_mode":false,
184
+ "controlnet_conditioning_scale": 1.0,
185
+ "control_guidance_start": 0.0,
186
+ "control_guidance_end": 1.0,
187
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
188
+ },
189
+ "qr_code_monster_v1": {
190
+ "enable": true,
191
+ "use_preprocessor":true,
192
+ "guess_mode":false,
193
+ "controlnet_conditioning_scale": 1.0,
194
+ "control_guidance_start": 0.0,
195
+ "control_guidance_end": 1.0,
196
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
197
+ },
198
+ "qr_code_monster_v2": {
199
+ "enable": true,
200
+ "use_preprocessor":true,
201
+ "guess_mode":false,
202
+ "controlnet_conditioning_scale": 1.0,
203
+ "control_guidance_start": 0.0,
204
+ "control_guidance_end": 1.0,
205
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
206
+ },
207
+ "controlnet_mediapipe_face": {
208
+ "enable": true,
209
+ "use_preprocessor":true,
210
+ "guess_mode":false,
211
+ "controlnet_conditioning_scale": 1.0,
212
+ "control_guidance_start": 0.0,
213
+ "control_guidance_end": 1.0,
214
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
215
+ },
216
+ "controlnet_ref": {
217
+ "enable": false,
218
+ "ref_image": "ref_image/ref_sample.png",
219
+ "attention_auto_machine_weight": 0.3,
220
+ "gn_auto_machine_weight": 0.3,
221
+ "style_fidelity": 0.5,
222
+ "reference_attn": true,
223
+ "reference_adain": false,
224
+ "scale_pattern":[1.0]
225
+ }
226
+ },
227
+ "upscale_config": {
228
+ "scheduler": "k_dpmpp_sde",
229
+ "steps": 20,
230
+ "strength": 0.5,
231
+ "guidance_scale": 10,
232
+ "controlnet_tile": {
233
+ "enable": true,
234
+ "controlnet_conditioning_scale": 1.0,
235
+ "guess_mode": false,
236
+ "control_guidance_start": 0.0,
237
+ "control_guidance_end": 1.0
238
+ },
239
+ "controlnet_line_anime": {
240
+ "enable": false,
241
+ "controlnet_conditioning_scale": 1.0,
242
+ "guess_mode": false,
243
+ "control_guidance_start": 0.0,
244
+ "control_guidance_end": 1.0
245
+ },
246
+ "controlnet_ip2p": {
247
+ "enable": false,
248
+ "controlnet_conditioning_scale": 0.5,
249
+ "guess_mode": false,
250
+ "control_guidance_start": 0.0,
251
+ "control_guidance_end": 1.0
252
+ },
253
+ "controlnet_ref": {
254
+ "enable": false,
255
+ "use_frame_as_ref_image": false,
256
+ "use_1st_frame_as_ref_image": false,
257
+ "ref_image": "ref_image/path_to_your_ref_img.jpg",
258
+ "attention_auto_machine_weight": 1.0,
259
+ "gn_auto_machine_weight": 1.0,
260
+ "style_fidelity": 0.25,
261
+ "reference_attn": true,
262
+ "reference_adain": false
263
+ }
264
+ },
265
+ "output":{
266
+ "format" : "mp4",
267
+ "fps" : 8,
268
+ "encode_param":{
269
+ "crf": 10
270
+ }
271
+ }
272
+ }
animate/config/prompts/inpaint_sample.json ADDED
@@ -0,0 +1,299 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "sample",
3
+ "path": "share/Stable-diffusion/mistoonAnime_v20.safetensors",
4
+ "motion_module": "models/motion-module/mm_sd_v15_v2.ckpt",
5
+ "compile": false,
6
+ "seed": [
7
+ 12345
8
+ ],
9
+ "scheduler": "k_dpmpp_sde",
10
+ "steps": 20,
11
+ "guidance_scale": 10,
12
+ "unet_batch_size": 1,
13
+ "clip_skip": 2,
14
+ "prompt_fixed_ratio": 0.5,
15
+ "head_prompt": "(style of studio ghibli:1.2), (masterpiece, best quality)",
16
+ "prompt_map": {
17
+ "0": "cyberpunk,robot cat, robot"
18
+ },
19
+ "tail_prompt": "",
20
+ "n_prompt": [
21
+ "(worst quality:2), (bad quality:2), (normal quality:2), lowers, bad anatomy, bad hands, (multiple views),"
22
+ ],
23
+ "lora_map": {
24
+ "share/models/Lora/Ghibli_v6.safetensors": 1.0
25
+ },
26
+ "motion_lora_map": {
27
+ },
28
+ "ip_adapter_map": {
29
+ "enable": true,
30
+ "input_image_dir": "ip_adapter_image/cyberpunk",
31
+ "prompt_fixed_ratio": 0.5,
32
+ "save_input_image": true,
33
+ "resized_to_square": false,
34
+ "scale": 0.5,
35
+ "is_plus_face": false,
36
+ "is_plus": true,
37
+ "is_light": false
38
+ },
39
+ "img2img_map":{
40
+ "enable": true,
41
+ "init_img_dir" : "init_imgs/sample1",
42
+ "save_init_image": true,
43
+ "denoising_strength" : 0.85
44
+ },
45
+ "region_map" : {
46
+ "0":{
47
+ "enable": true,
48
+ "mask_dir" : "mask/sample1",
49
+ "save_mask": true,
50
+ "is_init_img" : true,
51
+ "condition":{
52
+ "prompt_fixed_ratio": 0.5,
53
+ "head_prompt": "(masterpiece, best quality)",
54
+ "prompt_map": {
55
+ "0": "cyberpunk,robot cat, robot"
56
+ },
57
+ "tail_prompt": "",
58
+ "ip_adapter_map": {
59
+ "enable": true,
60
+ "input_image_dir": "ip_adapter_image/cyberpunk",
61
+ "prompt_fixed_ratio": 0.5,
62
+ "save_input_image": true,
63
+ "resized_to_square": false
64
+ }
65
+ }
66
+ },
67
+ "background":{
68
+ "is_init_img" : false,
69
+ "hint" : "background's condition refers to the one in root"
70
+ }
71
+ },
72
+ "controlnet_map": {
73
+ "input_image_dir" : "controlnet_image/cat",
74
+ "max_samples_on_vram": 0,
75
+ "max_models_on_vram" : 1,
76
+ "save_detectmap": true,
77
+ "preprocess_on_gpu": true,
78
+ "is_loop": true,
79
+
80
+ "controlnet_tile":{
81
+ "enable": true,
82
+ "use_preprocessor":true,
83
+ "preprocessor":{
84
+ "type" : "none",
85
+ "param":{
86
+ }
87
+ },
88
+ "guess_mode":false,
89
+ "controlnet_conditioning_scale": 1.0,
90
+ "control_guidance_start": 0.0,
91
+ "control_guidance_end": 1.0,
92
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
93
+ },
94
+ "controlnet_ip2p":{
95
+ "enable": true,
96
+ "use_preprocessor":true,
97
+ "guess_mode":false,
98
+ "controlnet_conditioning_scale":0.5,
99
+ "control_guidance_start": 0.0,
100
+ "control_guidance_end": 1.0,
101
+ "control_scale_list":[]
102
+ },
103
+ "controlnet_lineart_anime":{
104
+ "enable": true,
105
+ "use_preprocessor":true,
106
+ "guess_mode":false,
107
+ "controlnet_conditioning_scale": 1.0,
108
+ "control_guidance_start": 0.0,
109
+ "control_guidance_end": 1.0,
110
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
111
+ },
112
+ "controlnet_openpose":{
113
+ "enable": true,
114
+ "use_preprocessor":true,
115
+ "guess_mode":false,
116
+ "controlnet_conditioning_scale": 1.0,
117
+ "control_guidance_start": 0.0,
118
+ "control_guidance_end": 1.0,
119
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
120
+ },
121
+ "controlnet_softedge":{
122
+ "enable": true,
123
+ "use_preprocessor":true,
124
+ "preprocessor":{
125
+ "type" : "softedge_pidsafe",
126
+ "param":{
127
+ }
128
+ },
129
+ "guess_mode":false,
130
+ "controlnet_conditioning_scale": 1.0,
131
+ "control_guidance_start": 0.0,
132
+ "control_guidance_end": 1.0,
133
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
134
+ },
135
+ "controlnet_shuffle": {
136
+ "enable": true,
137
+ "use_preprocessor":true,
138
+ "guess_mode":false,
139
+ "controlnet_conditioning_scale": 1.0,
140
+ "control_guidance_start": 0.0,
141
+ "control_guidance_end": 1.0,
142
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
143
+ },
144
+ "controlnet_depth": {
145
+ "enable": true,
146
+ "use_preprocessor":true,
147
+ "guess_mode":false,
148
+ "controlnet_conditioning_scale": 1.0,
149
+ "control_guidance_start": 0.0,
150
+ "control_guidance_end": 1.0,
151
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
152
+ },
153
+ "controlnet_canny": {
154
+ "enable": true,
155
+ "use_preprocessor":true,
156
+ "guess_mode":false,
157
+ "controlnet_conditioning_scale": 1.0,
158
+ "control_guidance_start": 0.0,
159
+ "control_guidance_end": 1.0,
160
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
161
+ },
162
+ "controlnet_inpaint": {
163
+ "enable": true,
164
+ "use_preprocessor":true,
165
+ "guess_mode":false,
166
+ "controlnet_conditioning_scale": 1.0,
167
+ "control_guidance_start": 0.0,
168
+ "control_guidance_end": 1.0,
169
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
170
+ },
171
+ "controlnet_lineart": {
172
+ "enable": true,
173
+ "use_preprocessor":true,
174
+ "guess_mode":false,
175
+ "controlnet_conditioning_scale": 1.0,
176
+ "control_guidance_start": 0.0,
177
+ "control_guidance_end": 1.0,
178
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
179
+ },
180
+ "controlnet_mlsd": {
181
+ "enable": true,
182
+ "use_preprocessor":true,
183
+ "guess_mode":false,
184
+ "controlnet_conditioning_scale": 1.0,
185
+ "control_guidance_start": 0.0,
186
+ "control_guidance_end": 1.0,
187
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
188
+ },
189
+ "controlnet_normalbae": {
190
+ "enable": true,
191
+ "use_preprocessor":true,
192
+ "guess_mode":false,
193
+ "controlnet_conditioning_scale": 0.25,
194
+ "control_guidance_start": 0.0,
195
+ "control_guidance_end": 1.0,
196
+ "control_scale_list":[]
197
+ },
198
+ "controlnet_scribble": {
199
+ "enable": true,
200
+ "use_preprocessor":true,
201
+ "guess_mode":false,
202
+ "controlnet_conditioning_scale": 1.0,
203
+ "control_guidance_start": 0.0,
204
+ "control_guidance_end": 1.0,
205
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
206
+ },
207
+ "controlnet_seg": {
208
+ "enable": true,
209
+ "use_preprocessor":true,
210
+ "guess_mode":false,
211
+ "controlnet_conditioning_scale": 1.0,
212
+ "control_guidance_start": 0.0,
213
+ "control_guidance_end": 1.0,
214
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
215
+ },
216
+ "qr_code_monster_v1": {
217
+ "enable": true,
218
+ "use_preprocessor":true,
219
+ "guess_mode":false,
220
+ "controlnet_conditioning_scale": 1.0,
221
+ "control_guidance_start": 0.0,
222
+ "control_guidance_end": 1.0,
223
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
224
+ },
225
+ "qr_code_monster_v2": {
226
+ "enable": true,
227
+ "use_preprocessor":true,
228
+ "guess_mode":false,
229
+ "controlnet_conditioning_scale": 1.0,
230
+ "control_guidance_start": 0.0,
231
+ "control_guidance_end": 1.0,
232
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
233
+ },
234
+ "controlnet_mediapipe_face": {
235
+ "enable": true,
236
+ "use_preprocessor":true,
237
+ "guess_mode":false,
238
+ "controlnet_conditioning_scale": 1.0,
239
+ "control_guidance_start": 0.0,
240
+ "control_guidance_end": 1.0,
241
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
242
+ },
243
+ "controlnet_ref": {
244
+ "enable": false,
245
+ "ref_image": "ref_image/ref_sample.png",
246
+ "attention_auto_machine_weight": 0.3,
247
+ "gn_auto_machine_weight": 0.3,
248
+ "style_fidelity": 0.5,
249
+ "reference_attn": true,
250
+ "reference_adain": false,
251
+ "scale_pattern":[1.0]
252
+ }
253
+ },
254
+ "upscale_config": {
255
+ "scheduler": "k_dpmpp_sde",
256
+ "steps": 20,
257
+ "strength": 0.5,
258
+ "guidance_scale": 10,
259
+ "controlnet_tile": {
260
+ "enable": true,
261
+ "controlnet_conditioning_scale": 1.0,
262
+ "guess_mode": false,
263
+ "control_guidance_start": 0.0,
264
+ "control_guidance_end": 1.0
265
+ },
266
+ "controlnet_line_anime": {
267
+ "enable": false,
268
+ "controlnet_conditioning_scale": 1.0,
269
+ "guess_mode": false,
270
+ "control_guidance_start": 0.0,
271
+ "control_guidance_end": 1.0
272
+ },
273
+ "controlnet_ip2p": {
274
+ "enable": false,
275
+ "controlnet_conditioning_scale": 0.5,
276
+ "guess_mode": false,
277
+ "control_guidance_start": 0.0,
278
+ "control_guidance_end": 1.0
279
+ },
280
+ "controlnet_ref": {
281
+ "enable": false,
282
+ "use_frame_as_ref_image": false,
283
+ "use_1st_frame_as_ref_image": false,
284
+ "ref_image": "ref_image/path_to_your_ref_img.jpg",
285
+ "attention_auto_machine_weight": 1.0,
286
+ "gn_auto_machine_weight": 1.0,
287
+ "style_fidelity": 0.25,
288
+ "reference_attn": true,
289
+ "reference_adain": false
290
+ }
291
+ },
292
+ "output":{
293
+ "format" : "mp4",
294
+ "fps" : 8,
295
+ "encode_param":{
296
+ "crf": 10
297
+ }
298
+ }
299
+ }
animate/config/prompts/prompt_travel.json ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "sample",
3
+ "path": "chilloutMix-Ni.safetensors",
4
+ "motion_module": "AnimateLCM_sd15_t2v.ckpt",
5
+ "context_schedule" : "composite",
6
+ "lcm_map":{
7
+ "enable":true,
8
+ "start_scale":0.15,
9
+ "end_scale":0.75,
10
+ "gradient_start":0.2,
11
+ "gradient_end":0.75
12
+ },
13
+ "gradual_latent_hires_fix_map":{
14
+ "enable": false,
15
+ "scale": {
16
+ "0": 0.5,
17
+ "0.7": 1.0
18
+ },
19
+ "reverse_steps": 5,
20
+ "noise_add_count":3
21
+ },
22
+ "compile": false,
23
+ "seed": [
24
+ 0
25
+ ],
26
+ "scheduler": "lcm",
27
+ "steps": 8,
28
+ "guidance_scale": 3,
29
+ "unet_batch_size": 1,
30
+ "clip_skip": 2,
31
+ "prompt_fixed_ratio": 0.8,
32
+ "head_prompt": "A full body gorgeous smiling slim young cleavage robust boob japanese girl, wearing white deep V bandeau pantie, two hands with five fingers, lying on back on white bed, two arms, front view",
33
+ "prompt_map": {
34
+ "0": "air kiss",
35
+ "32": "spread arms",
36
+ "64": "cross arms",
37
+ "96": "hand heart on chest",
38
+ "128": "hand heart on abdomen",
39
+ "160": "armpit",
40
+ "192": "waving hands, open palms",
41
+ "224": "one hand on hip",
42
+ "256": "both hands on hip",
43
+ "288": "twerking",
44
+ "320": "hula",
45
+ "352": "belly dance",
46
+ "384": "lap dance",
47
+ "416": "high kicks",
48
+ "448": "spread legs"
49
+ },
50
+ "tail_prompt": "best quality, extremely detailed, HD, ultra-realistic, 8K, HQ, masterpiece, trending on artstation, art, smooth",
51
+ "n_prompt": [
52
+ "nipple, dudou, shirt, skirt, glove, headgear, shawl, hat, sock, sleeve, monochrome, longbody, lowres, bad anatomy, bad hands, fused fingers, missing fingers, too many fingers, extra digit, fewer digits, cropped, worst quality, low quality, deformed body, bloated, ugly, unrealistic, extra hands and arms"
53
+ ],
54
+ "lora_map": {},
55
+ "motion_lora_map": {},
56
+ "ip_adapter_map": {
57
+ "enable": false,
58
+ "input_image_dir": "ip_adapter_image/test",
59
+ "prompt_fixed_ratio": 0.5,
60
+ "save_input_image": true,
61
+ "resized_to_square": false,
62
+ "scale": 0.5,
63
+ "is_full_face": false,
64
+ "is_plus_face": false,
65
+ "is_plus": true,
66
+ "is_light": false
67
+ },
68
+ "controlnet_map": {
69
+ "input_image_dir" : "",
70
+ "max_samples_on_vram": 0,
71
+ "max_models_on_vram" : 0,
72
+ "save_detectmap": true,
73
+ "preprocess_on_gpu": true,
74
+ "is_loop": false,
75
+
76
+ "controlnet_tile":{
77
+ "enable": true,
78
+ "use_preprocessor":true,
79
+ "preprocessor":{
80
+ "type" : "none",
81
+ "param":{
82
+ }
83
+ },
84
+ "guess_mode":false,
85
+ "controlnet_conditioning_scale": 1.0,
86
+ "control_guidance_start": 0.0,
87
+ "control_guidance_end": 1.0,
88
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
89
+ "control_region_list":[]
90
+ },
91
+ "controlnet_ip2p":{
92
+ "enable": true,
93
+ "use_preprocessor":true,
94
+ "guess_mode":false,
95
+ "controlnet_conditioning_scale": 1.0,
96
+ "control_guidance_start": 0.0,
97
+ "control_guidance_end": 1.0,
98
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
99
+ "control_region_list":[]
100
+ },
101
+ "controlnet_lineart_anime":{
102
+ "enable": true,
103
+ "use_preprocessor":true,
104
+ "guess_mode":false,
105
+ "controlnet_conditioning_scale": 1.0,
106
+ "control_guidance_start": 0.0,
107
+ "control_guidance_end": 1.0,
108
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
109
+ "control_region_list":[]
110
+ },
111
+ "controlnet_openpose":{
112
+ "enable": true,
113
+ "use_preprocessor":true,
114
+ "guess_mode":false,
115
+ "controlnet_conditioning_scale": 1.0,
116
+ "control_guidance_start": 0.0,
117
+ "control_guidance_end": 1.0,
118
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
119
+ "control_region_list":[]
120
+ },
121
+ "controlnet_softedge":{
122
+ "enable": true,
123
+ "use_preprocessor":true,
124
+ "preprocessor":{
125
+ "type" : "softedge_pidsafe",
126
+ "param":{
127
+ }
128
+ },
129
+ "guess_mode":false,
130
+ "controlnet_conditioning_scale": 1.0,
131
+ "control_guidance_start": 0.0,
132
+ "control_guidance_end": 1.0,
133
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
134
+ "control_region_list":[]
135
+ },
136
+ "controlnet_shuffle": {
137
+ "enable": true,
138
+ "use_preprocessor":true,
139
+ "guess_mode":false,
140
+ "controlnet_conditioning_scale": 1.0,
141
+ "control_guidance_start": 0.0,
142
+ "control_guidance_end": 1.0,
143
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
144
+ "control_region_list":[]
145
+ },
146
+ "controlnet_depth": {
147
+ "enable": true,
148
+ "use_preprocessor":true,
149
+ "guess_mode":false,
150
+ "controlnet_conditioning_scale": 1.0,
151
+ "control_guidance_start": 0.0,
152
+ "control_guidance_end": 1.0,
153
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
154
+ "control_region_list":[]
155
+ },
156
+ "controlnet_canny": {
157
+ "enable": true,
158
+ "use_preprocessor":true,
159
+ "guess_mode":false,
160
+ "controlnet_conditioning_scale": 1.0,
161
+ "control_guidance_start": 0.0,
162
+ "control_guidance_end": 1.0,
163
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
164
+ "control_region_list":[]
165
+ },
166
+ "controlnet_inpaint": {
167
+ "enable": true,
168
+ "use_preprocessor":true,
169
+ "guess_mode":false,
170
+ "controlnet_conditioning_scale": 1.0,
171
+ "control_guidance_start": 0.0,
172
+ "control_guidance_end": 1.0,
173
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
174
+ "control_region_list":[]
175
+ },
176
+ "controlnet_lineart": {
177
+ "enable": true,
178
+ "use_preprocessor":true,
179
+ "guess_mode":false,
180
+ "controlnet_conditioning_scale": 1.0,
181
+ "control_guidance_start": 0.0,
182
+ "control_guidance_end": 1.0,
183
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
184
+ "control_region_list":[]
185
+ },
186
+ "controlnet_mlsd": {
187
+ "enable": true,
188
+ "use_preprocessor":true,
189
+ "guess_mode":false,
190
+ "controlnet_conditioning_scale": 1.0,
191
+ "control_guidance_start": 0.0,
192
+ "control_guidance_end": 1.0,
193
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
194
+ "control_region_list":[]
195
+ },
196
+ "controlnet_normalbae": {
197
+ "enable": true,
198
+ "use_preprocessor":true,
199
+ "guess_mode":false,
200
+ "controlnet_conditioning_scale": 1.0,
201
+ "control_guidance_start": 0.0,
202
+ "control_guidance_end": 1.0,
203
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
204
+ "control_region_list":[]
205
+ },
206
+ "controlnet_scribble": {
207
+ "enable": true,
208
+ "use_preprocessor":true,
209
+ "guess_mode":false,
210
+ "controlnet_conditioning_scale": 1.0,
211
+ "control_guidance_start": 0.0,
212
+ "control_guidance_end": 1.0,
213
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
214
+ "control_region_list":[]
215
+ },
216
+ "controlnet_seg": {
217
+ "enable": true,
218
+ "use_preprocessor":true,
219
+ "guess_mode":false,
220
+ "controlnet_conditioning_scale": 1.0,
221
+ "control_guidance_start": 0.0,
222
+ "control_guidance_end": 1.0,
223
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
224
+ "control_region_list":[]
225
+ },
226
+ "qr_code_monster_v1": {
227
+ "enable": true,
228
+ "use_preprocessor":true,
229
+ "guess_mode":false,
230
+ "controlnet_conditioning_scale": 1.0,
231
+ "control_guidance_start": 0.0,
232
+ "control_guidance_end": 1.0,
233
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
234
+ "control_region_list":[]
235
+ },
236
+ "qr_code_monster_v2": {
237
+ "enable": true,
238
+ "use_preprocessor":true,
239
+ "guess_mode":false,
240
+ "controlnet_conditioning_scale": 1.0,
241
+ "control_guidance_start": 0.0,
242
+ "control_guidance_end": 1.0,
243
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
244
+ "control_region_list":[]
245
+ },
246
+ "controlnet_mediapipe_face": {
247
+ "enable": true,
248
+ "use_preprocessor":true,
249
+ "guess_mode":false,
250
+ "controlnet_conditioning_scale": 1.0,
251
+ "control_guidance_start": 0.0,
252
+ "control_guidance_end": 1.0,
253
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
254
+ "control_region_list":[]
255
+ },
256
+ "animatediff_controlnet": {
257
+ "enable": true,
258
+ "use_preprocessor":true,
259
+ "guess_mode":false,
260
+ "controlnet_conditioning_scale": 1.0,
261
+ "control_guidance_start": 0.0,
262
+ "control_guidance_end": 1.0,
263
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1],
264
+ "control_region_list":[]
265
+ },
266
+ "controlnet_ref": {
267
+ "enable": false,
268
+ "ref_image": "ref_image/ref_sample.png",
269
+ "attention_auto_machine_weight": 0.3,
270
+ "gn_auto_machine_weight": 0.3,
271
+ "style_fidelity": 0.5,
272
+ "reference_attn": true,
273
+ "reference_adain": false,
274
+ "scale_pattern":[1.0]
275
+ }
276
+ },
277
+ "upscale_config": {
278
+ "scheduler": "k_dpmpp_sde",
279
+ "steps": 20,
280
+ "strength": 0.5,
281
+ "guidance_scale": 10,
282
+ "controlnet_tile": {
283
+ "enable": true,
284
+ "controlnet_conditioning_scale": 1.0,
285
+ "guess_mode": false,
286
+ "control_guidance_start": 0.0,
287
+ "control_guidance_end": 1.0
288
+ },
289
+ "controlnet_line_anime": {
290
+ "enable": false,
291
+ "controlnet_conditioning_scale": 1.0,
292
+ "guess_mode": false,
293
+ "control_guidance_start": 0.0,
294
+ "control_guidance_end": 1.0
295
+ },
296
+ "controlnet_ip2p": {
297
+ "enable": false,
298
+ "controlnet_conditioning_scale": 0.5,
299
+ "guess_mode": false,
300
+ "control_guidance_start": 0.0,
301
+ "control_guidance_end": 1.0
302
+ },
303
+ "controlnet_ref": {
304
+ "enable": false,
305
+ "use_frame_as_ref_image": false,
306
+ "use_1st_frame_as_ref_image": false,
307
+ "ref_image": "ref_image/path_to_your_ref_img.jpg",
308
+ "attention_auto_machine_weight": 1.0,
309
+ "gn_auto_machine_weight": 1.0,
310
+ "style_fidelity": 0.25,
311
+ "reference_attn": true,
312
+ "reference_adain": false
313
+ }
314
+ },
315
+ "output":{
316
+ "format" : "mp4",
317
+ "fps" : 8,
318
+ "encode_param":{
319
+ "crf": 10
320
+ }
321
+ }
322
+ }
animate/config/prompts/prompt_travel_multi_controlnet.json ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "sample",
3
+ "path": "share/Stable-diffusion/mistoonAnime_v20.safetensors",
4
+ "motion_module": "models/motion-module/mm_sd_v14.ckpt",
5
+ "compile": false,
6
+ "seed": [
7
+ 341774366206100
8
+ ],
9
+ "scheduler": "k_dpmpp_sde",
10
+ "steps": 20,
11
+ "guidance_scale": 10,
12
+ "clip_skip": 2,
13
+ "head_prompt": "masterpiece, best quality, a beautiful and detailed portriat of muffet, monster girl,((purple body:1.3)),humanoid, arachnid, anthro,((fangs)),pigtails,hair bows,5 eyes,spider girl,6 arms,solo",
14
+ "prompt_map": {
15
+ "0": "smile standing,((spider webs:1.0))",
16
+ "32": "(((walking))),((spider webs:1.0))",
17
+ "64": "(((running))),((spider webs:2.0)),wide angle lens, fish eye effect",
18
+ "96": "(((sitting))),((spider webs:1.0))"
19
+ },
20
+ "tail_prompt": "clothed, open mouth, awesome and detailed background, holding teapot, holding teacup, 6 hands,detailed hands,storefront that sells pastries and tea,bloomers,(red and black clothing),inside,pouring into teacup,muffetwear",
21
+ "n_prompt": [
22
+ "(worst quality, low quality:1.4),nudity,simple background,border,mouth closed,text, patreon,bed,bedroom,white background,((monochrome)),sketch,(pink body:1.4),7 arms,8 arms,4 arms"
23
+ ],
24
+ "lora_map": {
25
+ "share/Lora/muffet_v2.safetensors" : 1.0,
26
+ "share/Lora/add_detail.safetensors" : 1.0
27
+ },
28
+ "ip_adapter_map": {
29
+ "enable": true,
30
+ "input_image_dir": "ip_adapter_image/test",
31
+ "save_input_image": true,
32
+ "resized_to_square": false,
33
+ "scale": 0.5,
34
+ "is_plus_face": true,
35
+ "is_plus": true
36
+ },
37
+ "controlnet_map": {
38
+ "input_image_dir" : "controlnet_image/test",
39
+ "max_samples_on_vram": 200,
40
+ "max_models_on_vram" : 3,
41
+ "save_detectmap": true,
42
+ "preprocess_on_gpu": true,
43
+ "is_loop": true,
44
+
45
+ "controlnet_tile":{
46
+ "enable": true,
47
+ "use_preprocessor":true,
48
+ "preprocessor":{
49
+ "type" : "none",
50
+ "param":{
51
+ }
52
+ },
53
+ "guess_mode":false,
54
+ "controlnet_conditioning_scale": 1.0,
55
+ "control_guidance_start": 0.0,
56
+ "control_guidance_end": 1.0,
57
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
58
+ },
59
+ "controlnet_ip2p":{
60
+ "enable": true,
61
+ "use_preprocessor":true,
62
+ "guess_mode":false,
63
+ "controlnet_conditioning_scale": 1.0,
64
+ "control_guidance_start": 0.0,
65
+ "control_guidance_end": 1.0,
66
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
67
+ },
68
+ "controlnet_lineart_anime":{
69
+ "enable": true,
70
+ "use_preprocessor":true,
71
+ "guess_mode":false,
72
+ "controlnet_conditioning_scale": 1.0,
73
+ "control_guidance_start": 0.0,
74
+ "control_guidance_end": 1.0,
75
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
76
+ },
77
+ "controlnet_openpose":{
78
+ "enable": true,
79
+ "use_preprocessor":true,
80
+ "guess_mode":false,
81
+ "controlnet_conditioning_scale": 1.0,
82
+ "control_guidance_start": 0.0,
83
+ "control_guidance_end": 1.0,
84
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
85
+ },
86
+ "controlnet_softedge":{
87
+ "enable": true,
88
+ "use_preprocessor":true,
89
+ "preprocessor":{
90
+ "type" : "softedge_pidsafe",
91
+ "param":{
92
+ }
93
+ },
94
+ "guess_mode":false,
95
+ "controlnet_conditioning_scale": 1.0,
96
+ "control_guidance_start": 0.0,
97
+ "control_guidance_end": 1.0,
98
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
99
+ },
100
+ "controlnet_shuffle": {
101
+ "enable": true,
102
+ "use_preprocessor":true,
103
+ "guess_mode":false,
104
+ "controlnet_conditioning_scale": 1.0,
105
+ "control_guidance_start": 0.0,
106
+ "control_guidance_end": 1.0,
107
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
108
+ },
109
+ "controlnet_depth": {
110
+ "enable": true,
111
+ "use_preprocessor":true,
112
+ "guess_mode":false,
113
+ "controlnet_conditioning_scale": 1.0,
114
+ "control_guidance_start": 0.0,
115
+ "control_guidance_end": 1.0,
116
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
117
+ },
118
+ "controlnet_canny": {
119
+ "enable": true,
120
+ "use_preprocessor":true,
121
+ "guess_mode":false,
122
+ "controlnet_conditioning_scale": 1.0,
123
+ "control_guidance_start": 0.0,
124
+ "control_guidance_end": 1.0,
125
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
126
+ },
127
+ "controlnet_inpaint": {
128
+ "enable": true,
129
+ "use_preprocessor":true,
130
+ "guess_mode":false,
131
+ "controlnet_conditioning_scale": 1.0,
132
+ "control_guidance_start": 0.0,
133
+ "control_guidance_end": 1.0,
134
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
135
+ },
136
+ "controlnet_lineart": {
137
+ "enable": true,
138
+ "use_preprocessor":true,
139
+ "guess_mode":false,
140
+ "controlnet_conditioning_scale": 1.0,
141
+ "control_guidance_start": 0.0,
142
+ "control_guidance_end": 1.0,
143
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
144
+ },
145
+ "controlnet_mlsd": {
146
+ "enable": true,
147
+ "use_preprocessor":true,
148
+ "guess_mode":false,
149
+ "controlnet_conditioning_scale": 1.0,
150
+ "control_guidance_start": 0.0,
151
+ "control_guidance_end": 1.0,
152
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
153
+ },
154
+ "controlnet_normalbae": {
155
+ "enable": true,
156
+ "use_preprocessor":true,
157
+ "guess_mode":false,
158
+ "controlnet_conditioning_scale": 1.0,
159
+ "control_guidance_start": 0.0,
160
+ "control_guidance_end": 1.0,
161
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
162
+ },
163
+ "controlnet_scribble": {
164
+ "enable": true,
165
+ "use_preprocessor":true,
166
+ "guess_mode":false,
167
+ "controlnet_conditioning_scale": 1.0,
168
+ "control_guidance_start": 0.0,
169
+ "control_guidance_end": 1.0,
170
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
171
+ },
172
+ "controlnet_seg": {
173
+ "enable": true,
174
+ "use_preprocessor":true,
175
+ "guess_mode":false,
176
+ "controlnet_conditioning_scale": 1.0,
177
+ "control_guidance_start": 0.0,
178
+ "control_guidance_end": 1.0,
179
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
180
+ },
181
+ "controlnet_ref": {
182
+ "enable": false,
183
+ "ref_image": "ref_image/ref_sample.png",
184
+ "attention_auto_machine_weight": 0.3,
185
+ "gn_auto_machine_weight": 0.3,
186
+ "style_fidelity": 0.5,
187
+ "reference_attn": true,
188
+ "reference_adain": false,
189
+ "scale_pattern":[1.0]
190
+ }
191
+ },
192
+ "upscale_config": {
193
+ "scheduler": "k_dpmpp_sde",
194
+ "steps": 20,
195
+ "strength": 0.5,
196
+ "guidance_scale": 10,
197
+ "controlnet_tile": {
198
+ "enable": true,
199
+ "controlnet_conditioning_scale": 1.0,
200
+ "guess_mode": false,
201
+ "control_guidance_start": 0.0,
202
+ "control_guidance_end": 1.0
203
+ },
204
+ "controlnet_line_anime": {
205
+ "enable": false,
206
+ "controlnet_conditioning_scale": 1.0,
207
+ "guess_mode": false,
208
+ "control_guidance_start": 0.0,
209
+ "control_guidance_end": 1.0
210
+ },
211
+ "controlnet_ip2p": {
212
+ "enable": true,
213
+ "controlnet_conditioning_scale": 0.5,
214
+ "guess_mode": false,
215
+ "control_guidance_start": 0.0,
216
+ "control_guidance_end": 1.0
217
+ },
218
+ "controlnet_ref": {
219
+ "enable": false,
220
+ "use_frame_as_ref_image": false,
221
+ "use_1st_frame_as_ref_image": true,
222
+ "ref_image": "ref_image/path_to_your_ref_img.jpg",
223
+ "attention_auto_machine_weight": 1.0,
224
+ "gn_auto_machine_weight": 1.0,
225
+ "style_fidelity": 0.25,
226
+ "reference_attn": true,
227
+ "reference_adain": false
228
+ }
229
+ },
230
+ "output":{
231
+ "preview_steps": [10],
232
+ "format" : "gif",
233
+ "fps" : 8,
234
+ "encode_param":{
235
+ "crf": 10
236
+ }
237
+ }
238
+ }
animate/config/prompts/region_sample.json ADDED
@@ -0,0 +1,299 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "sample",
3
+ "path": "share/Stable-diffusion/mistoonAnime_v20.safetensors",
4
+ "motion_module": "models/motion-module/mm_sd_v15_v2.ckpt",
5
+ "compile": false,
6
+ "seed": [
7
+ 12345
8
+ ],
9
+ "scheduler": "k_dpmpp_sde",
10
+ "steps": 20,
11
+ "guidance_scale": 10,
12
+ "unet_batch_size": 1,
13
+ "clip_skip": 2,
14
+ "prompt_fixed_ratio": 0.5,
15
+ "head_prompt": "(style of studio ghibli:1.2), (masterpiece, best quality)",
16
+ "prompt_map": {
17
+ "0": "forest, cute orange cat, outdoors,"
18
+ },
19
+ "tail_prompt": "",
20
+ "n_prompt": [
21
+ "(worst quality:2), (bad quality:2), (normal quality:2), lowers, bad anatomy, bad hands, (multiple views),"
22
+ ],
23
+ "lora_map": {
24
+ "share/models/Lora/Ghibli_v6.safetensors": 1.0
25
+ },
26
+ "motion_lora_map": {
27
+ },
28
+ "ip_adapter_map": {
29
+ "enable": true,
30
+ "input_image_dir": "ip_adapter_image/cat",
31
+ "prompt_fixed_ratio": 0.5,
32
+ "save_input_image": true,
33
+ "resized_to_square": false,
34
+ "scale": 0.5,
35
+ "is_plus_face": false,
36
+ "is_plus": true,
37
+ "is_light": false
38
+ },
39
+ "img2img_map":{
40
+ "enable": true,
41
+ "init_img_dir" : "init_imgs/sample1",
42
+ "save_init_image": true,
43
+ "denoising_strength" : 0.7
44
+ },
45
+ "region_map" : {
46
+ "0":{
47
+ "enable": true,
48
+ "mask_dir" : "mask/sample0",
49
+ "save_mask": true,
50
+ "is_init_img" : false,
51
+ "condition":{
52
+ "prompt_fixed_ratio": 0.5,
53
+ "head_prompt": "(style of studio ghibli:1.2), (masterpiece, best quality)",
54
+ "prompt_map": {
55
+ "0": "house, cute dog, rain, street, outdoors"
56
+ },
57
+ "tail_prompt": "",
58
+ "ip_adapter_map": {
59
+ "enable": true,
60
+ "input_image_dir": "ip_adapter_image/cyberpunk",
61
+ "prompt_fixed_ratio": 0.5,
62
+ "save_input_image": true,
63
+ "resized_to_square": false
64
+ }
65
+ }
66
+ },
67
+ "background":{
68
+ "is_init_img" : false,
69
+ "hint" : "background's condition refers to the one in root"
70
+ }
71
+ },
72
+ "controlnet_map": {
73
+ "input_image_dir" : "",
74
+ "max_samples_on_vram": 0,
75
+ "max_models_on_vram" : 1,
76
+ "save_detectmap": true,
77
+ "preprocess_on_gpu": true,
78
+ "is_loop": true,
79
+
80
+ "controlnet_tile":{
81
+ "enable": true,
82
+ "use_preprocessor":true,
83
+ "preprocessor":{
84
+ "type" : "none",
85
+ "param":{
86
+ }
87
+ },
88
+ "guess_mode":false,
89
+ "controlnet_conditioning_scale": 1.0,
90
+ "control_guidance_start": 0.0,
91
+ "control_guidance_end": 1.0,
92
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
93
+ },
94
+ "controlnet_ip2p":{
95
+ "enable": true,
96
+ "use_preprocessor":true,
97
+ "guess_mode":false,
98
+ "controlnet_conditioning_scale": 1.0,
99
+ "control_guidance_start": 0.0,
100
+ "control_guidance_end": 1.0,
101
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
102
+ },
103
+ "controlnet_lineart_anime":{
104
+ "enable": true,
105
+ "use_preprocessor":true,
106
+ "guess_mode":false,
107
+ "controlnet_conditioning_scale": 1.0,
108
+ "control_guidance_start": 0.0,
109
+ "control_guidance_end": 1.0,
110
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
111
+ },
112
+ "controlnet_openpose":{
113
+ "enable": true,
114
+ "use_preprocessor":true,
115
+ "guess_mode":false,
116
+ "controlnet_conditioning_scale": 1.0,
117
+ "control_guidance_start": 0.0,
118
+ "control_guidance_end": 1.0,
119
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
120
+ },
121
+ "controlnet_softedge":{
122
+ "enable": true,
123
+ "use_preprocessor":true,
124
+ "preprocessor":{
125
+ "type" : "softedge_pidsafe",
126
+ "param":{
127
+ }
128
+ },
129
+ "guess_mode":false,
130
+ "controlnet_conditioning_scale": 1.0,
131
+ "control_guidance_start": 0.0,
132
+ "control_guidance_end": 1.0,
133
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
134
+ },
135
+ "controlnet_shuffle": {
136
+ "enable": true,
137
+ "use_preprocessor":true,
138
+ "guess_mode":false,
139
+ "controlnet_conditioning_scale": 1.0,
140
+ "control_guidance_start": 0.0,
141
+ "control_guidance_end": 1.0,
142
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
143
+ },
144
+ "controlnet_depth": {
145
+ "enable": true,
146
+ "use_preprocessor":true,
147
+ "guess_mode":false,
148
+ "controlnet_conditioning_scale": 1.0,
149
+ "control_guidance_start": 0.0,
150
+ "control_guidance_end": 1.0,
151
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
152
+ },
153
+ "controlnet_canny": {
154
+ "enable": true,
155
+ "use_preprocessor":true,
156
+ "guess_mode":false,
157
+ "controlnet_conditioning_scale": 1.0,
158
+ "control_guidance_start": 0.0,
159
+ "control_guidance_end": 1.0,
160
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
161
+ },
162
+ "controlnet_inpaint": {
163
+ "enable": true,
164
+ "use_preprocessor":true,
165
+ "guess_mode":false,
166
+ "controlnet_conditioning_scale": 1.0,
167
+ "control_guidance_start": 0.0,
168
+ "control_guidance_end": 1.0,
169
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
170
+ },
171
+ "controlnet_lineart": {
172
+ "enable": true,
173
+ "use_preprocessor":true,
174
+ "guess_mode":false,
175
+ "controlnet_conditioning_scale": 1.0,
176
+ "control_guidance_start": 0.0,
177
+ "control_guidance_end": 1.0,
178
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
179
+ },
180
+ "controlnet_mlsd": {
181
+ "enable": true,
182
+ "use_preprocessor":true,
183
+ "guess_mode":false,
184
+ "controlnet_conditioning_scale": 1.0,
185
+ "control_guidance_start": 0.0,
186
+ "control_guidance_end": 1.0,
187
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
188
+ },
189
+ "controlnet_normalbae": {
190
+ "enable": true,
191
+ "use_preprocessor":true,
192
+ "guess_mode":false,
193
+ "controlnet_conditioning_scale": 1.0,
194
+ "control_guidance_start": 0.0,
195
+ "control_guidance_end": 1.0,
196
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
197
+ },
198
+ "controlnet_scribble": {
199
+ "enable": true,
200
+ "use_preprocessor":true,
201
+ "guess_mode":false,
202
+ "controlnet_conditioning_scale": 1.0,
203
+ "control_guidance_start": 0.0,
204
+ "control_guidance_end": 1.0,
205
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
206
+ },
207
+ "controlnet_seg": {
208
+ "enable": true,
209
+ "use_preprocessor":true,
210
+ "guess_mode":false,
211
+ "controlnet_conditioning_scale": 1.0,
212
+ "control_guidance_start": 0.0,
213
+ "control_guidance_end": 1.0,
214
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
215
+ },
216
+ "qr_code_monster_v1": {
217
+ "enable": true,
218
+ "use_preprocessor":true,
219
+ "guess_mode":false,
220
+ "controlnet_conditioning_scale": 1.0,
221
+ "control_guidance_start": 0.0,
222
+ "control_guidance_end": 1.0,
223
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
224
+ },
225
+ "qr_code_monster_v2": {
226
+ "enable": true,
227
+ "use_preprocessor":true,
228
+ "guess_mode":false,
229
+ "controlnet_conditioning_scale": 1.0,
230
+ "control_guidance_start": 0.0,
231
+ "control_guidance_end": 1.0,
232
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
233
+ },
234
+ "controlnet_mediapipe_face": {
235
+ "enable": true,
236
+ "use_preprocessor":true,
237
+ "guess_mode":false,
238
+ "controlnet_conditioning_scale": 1.0,
239
+ "control_guidance_start": 0.0,
240
+ "control_guidance_end": 1.0,
241
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
242
+ },
243
+ "controlnet_ref": {
244
+ "enable": false,
245
+ "ref_image": "ref_image/ref_sample.png",
246
+ "attention_auto_machine_weight": 0.3,
247
+ "gn_auto_machine_weight": 0.3,
248
+ "style_fidelity": 0.5,
249
+ "reference_attn": true,
250
+ "reference_adain": false,
251
+ "scale_pattern":[1.0]
252
+ }
253
+ },
254
+ "upscale_config": {
255
+ "scheduler": "k_dpmpp_sde",
256
+ "steps": 20,
257
+ "strength": 0.5,
258
+ "guidance_scale": 10,
259
+ "controlnet_tile": {
260
+ "enable": true,
261
+ "controlnet_conditioning_scale": 1.0,
262
+ "guess_mode": false,
263
+ "control_guidance_start": 0.0,
264
+ "control_guidance_end": 1.0
265
+ },
266
+ "controlnet_line_anime": {
267
+ "enable": false,
268
+ "controlnet_conditioning_scale": 1.0,
269
+ "guess_mode": false,
270
+ "control_guidance_start": 0.0,
271
+ "control_guidance_end": 1.0
272
+ },
273
+ "controlnet_ip2p": {
274
+ "enable": false,
275
+ "controlnet_conditioning_scale": 0.5,
276
+ "guess_mode": false,
277
+ "control_guidance_start": 0.0,
278
+ "control_guidance_end": 1.0
279
+ },
280
+ "controlnet_ref": {
281
+ "enable": false,
282
+ "use_frame_as_ref_image": false,
283
+ "use_1st_frame_as_ref_image": false,
284
+ "ref_image": "ref_image/path_to_your_ref_img.jpg",
285
+ "attention_auto_machine_weight": 1.0,
286
+ "gn_auto_machine_weight": 1.0,
287
+ "style_fidelity": 0.25,
288
+ "reference_attn": true,
289
+ "reference_adain": false
290
+ }
291
+ },
292
+ "output":{
293
+ "format" : "mp4",
294
+ "fps" : 8,
295
+ "encode_param":{
296
+ "crf": 10
297
+ }
298
+ }
299
+ }
animate/config/prompts/region_sample2.json ADDED
@@ -0,0 +1,299 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "sample",
3
+ "path": "share/Stable-diffusion/mistoonAnime_v20.safetensors",
4
+ "motion_module": "models/motion-module/mm_sd_v15_v2.ckpt",
5
+ "compile": false,
6
+ "seed": [
7
+ 12345
8
+ ],
9
+ "scheduler": "k_dpmpp_sde",
10
+ "steps": 20,
11
+ "guidance_scale": 10,
12
+ "unet_batch_size": 1,
13
+ "clip_skip": 2,
14
+ "prompt_fixed_ratio": 0.5,
15
+ "head_prompt": "(style of studio ghibli:1.2), (masterpiece, best quality)",
16
+ "prompt_map": {
17
+ "0": "forest, outdoors,"
18
+ },
19
+ "tail_prompt": "",
20
+ "n_prompt": [
21
+ "(worst quality:2), (bad quality:2), (normal quality:2), lowers, bad anatomy, bad hands, (multiple views),"
22
+ ],
23
+ "lora_map": {
24
+ "share/models/Lora/Ghibli_v6.safetensors": 1.0
25
+ },
26
+ "motion_lora_map": {
27
+ },
28
+ "ip_adapter_map": {
29
+ "enable": true,
30
+ "input_image_dir": "ip_adapter_image/cat",
31
+ "prompt_fixed_ratio": 0.5,
32
+ "save_input_image": true,
33
+ "resized_to_square": false,
34
+ "scale": 0.5,
35
+ "is_plus_face": false,
36
+ "is_plus": true,
37
+ "is_light": false
38
+ },
39
+ "img2img_map":{
40
+ "enable": true,
41
+ "init_img_dir" : "init_imgs/sample1",
42
+ "save_init_image": true,
43
+ "denoising_strength" : 0.7
44
+ },
45
+ "region_map" : {
46
+ "0":{
47
+ "enable": true,
48
+ "mask_dir" : "mask/sample1",
49
+ "save_mask": true,
50
+ "is_init_img" : false,
51
+ "condition":{
52
+ "prompt_fixed_ratio": 0.5,
53
+ "head_prompt": "(masterpiece, best quality)",
54
+ "prompt_map": {
55
+ "0": "cyberpunk,robot cat, robot"
56
+ },
57
+ "tail_prompt": "",
58
+ "ip_adapter_map": {
59
+ "enable": true,
60
+ "input_image_dir": "ip_adapter_image/cyberpunk",
61
+ "prompt_fixed_ratio": 0.5,
62
+ "save_input_image": true,
63
+ "resized_to_square": false
64
+ }
65
+ }
66
+ },
67
+ "background":{
68
+ "is_init_img" : false,
69
+ "hint" : "background's condition refers to the one in root"
70
+ }
71
+ },
72
+ "controlnet_map": {
73
+ "input_image_dir" : "",
74
+ "max_samples_on_vram": 0,
75
+ "max_models_on_vram" : 1,
76
+ "save_detectmap": true,
77
+ "preprocess_on_gpu": true,
78
+ "is_loop": true,
79
+
80
+ "controlnet_tile":{
81
+ "enable": true,
82
+ "use_preprocessor":true,
83
+ "preprocessor":{
84
+ "type" : "none",
85
+ "param":{
86
+ }
87
+ },
88
+ "guess_mode":false,
89
+ "controlnet_conditioning_scale": 1.0,
90
+ "control_guidance_start": 0.0,
91
+ "control_guidance_end": 1.0,
92
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
93
+ },
94
+ "controlnet_ip2p":{
95
+ "enable": true,
96
+ "use_preprocessor":true,
97
+ "guess_mode":false,
98
+ "controlnet_conditioning_scale": 1.0,
99
+ "control_guidance_start": 0.0,
100
+ "control_guidance_end": 1.0,
101
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
102
+ },
103
+ "controlnet_lineart_anime":{
104
+ "enable": true,
105
+ "use_preprocessor":true,
106
+ "guess_mode":false,
107
+ "controlnet_conditioning_scale": 1.0,
108
+ "control_guidance_start": 0.0,
109
+ "control_guidance_end": 1.0,
110
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
111
+ },
112
+ "controlnet_openpose":{
113
+ "enable": true,
114
+ "use_preprocessor":true,
115
+ "guess_mode":false,
116
+ "controlnet_conditioning_scale": 1.0,
117
+ "control_guidance_start": 0.0,
118
+ "control_guidance_end": 1.0,
119
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
120
+ },
121
+ "controlnet_softedge":{
122
+ "enable": true,
123
+ "use_preprocessor":true,
124
+ "preprocessor":{
125
+ "type" : "softedge_pidsafe",
126
+ "param":{
127
+ }
128
+ },
129
+ "guess_mode":false,
130
+ "controlnet_conditioning_scale": 1.0,
131
+ "control_guidance_start": 0.0,
132
+ "control_guidance_end": 1.0,
133
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
134
+ },
135
+ "controlnet_shuffle": {
136
+ "enable": true,
137
+ "use_preprocessor":true,
138
+ "guess_mode":false,
139
+ "controlnet_conditioning_scale": 1.0,
140
+ "control_guidance_start": 0.0,
141
+ "control_guidance_end": 1.0,
142
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
143
+ },
144
+ "controlnet_depth": {
145
+ "enable": true,
146
+ "use_preprocessor":true,
147
+ "guess_mode":false,
148
+ "controlnet_conditioning_scale": 1.0,
149
+ "control_guidance_start": 0.0,
150
+ "control_guidance_end": 1.0,
151
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
152
+ },
153
+ "controlnet_canny": {
154
+ "enable": true,
155
+ "use_preprocessor":true,
156
+ "guess_mode":false,
157
+ "controlnet_conditioning_scale": 1.0,
158
+ "control_guidance_start": 0.0,
159
+ "control_guidance_end": 1.0,
160
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
161
+ },
162
+ "controlnet_inpaint": {
163
+ "enable": true,
164
+ "use_preprocessor":true,
165
+ "guess_mode":false,
166
+ "controlnet_conditioning_scale": 1.0,
167
+ "control_guidance_start": 0.0,
168
+ "control_guidance_end": 1.0,
169
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
170
+ },
171
+ "controlnet_lineart": {
172
+ "enable": true,
173
+ "use_preprocessor":true,
174
+ "guess_mode":false,
175
+ "controlnet_conditioning_scale": 1.0,
176
+ "control_guidance_start": 0.0,
177
+ "control_guidance_end": 1.0,
178
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
179
+ },
180
+ "controlnet_mlsd": {
181
+ "enable": true,
182
+ "use_preprocessor":true,
183
+ "guess_mode":false,
184
+ "controlnet_conditioning_scale": 1.0,
185
+ "control_guidance_start": 0.0,
186
+ "control_guidance_end": 1.0,
187
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
188
+ },
189
+ "controlnet_normalbae": {
190
+ "enable": true,
191
+ "use_preprocessor":true,
192
+ "guess_mode":false,
193
+ "controlnet_conditioning_scale": 1.0,
194
+ "control_guidance_start": 0.0,
195
+ "control_guidance_end": 1.0,
196
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
197
+ },
198
+ "controlnet_scribble": {
199
+ "enable": true,
200
+ "use_preprocessor":true,
201
+ "guess_mode":false,
202
+ "controlnet_conditioning_scale": 1.0,
203
+ "control_guidance_start": 0.0,
204
+ "control_guidance_end": 1.0,
205
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
206
+ },
207
+ "controlnet_seg": {
208
+ "enable": true,
209
+ "use_preprocessor":true,
210
+ "guess_mode":false,
211
+ "controlnet_conditioning_scale": 1.0,
212
+ "control_guidance_start": 0.0,
213
+ "control_guidance_end": 1.0,
214
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
215
+ },
216
+ "qr_code_monster_v1": {
217
+ "enable": true,
218
+ "use_preprocessor":true,
219
+ "guess_mode":false,
220
+ "controlnet_conditioning_scale": 1.0,
221
+ "control_guidance_start": 0.0,
222
+ "control_guidance_end": 1.0,
223
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
224
+ },
225
+ "qr_code_monster_v2": {
226
+ "enable": true,
227
+ "use_preprocessor":true,
228
+ "guess_mode":false,
229
+ "controlnet_conditioning_scale": 1.0,
230
+ "control_guidance_start": 0.0,
231
+ "control_guidance_end": 1.0,
232
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
233
+ },
234
+ "controlnet_mediapipe_face": {
235
+ "enable": true,
236
+ "use_preprocessor":true,
237
+ "guess_mode":false,
238
+ "controlnet_conditioning_scale": 1.0,
239
+ "control_guidance_start": 0.0,
240
+ "control_guidance_end": 1.0,
241
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
242
+ },
243
+ "controlnet_ref": {
244
+ "enable": false,
245
+ "ref_image": "ref_image/ref_sample.png",
246
+ "attention_auto_machine_weight": 0.3,
247
+ "gn_auto_machine_weight": 0.3,
248
+ "style_fidelity": 0.5,
249
+ "reference_attn": true,
250
+ "reference_adain": false,
251
+ "scale_pattern":[1.0]
252
+ }
253
+ },
254
+ "upscale_config": {
255
+ "scheduler": "k_dpmpp_sde",
256
+ "steps": 20,
257
+ "strength": 0.5,
258
+ "guidance_scale": 10,
259
+ "controlnet_tile": {
260
+ "enable": true,
261
+ "controlnet_conditioning_scale": 1.0,
262
+ "guess_mode": false,
263
+ "control_guidance_start": 0.0,
264
+ "control_guidance_end": 1.0
265
+ },
266
+ "controlnet_line_anime": {
267
+ "enable": false,
268
+ "controlnet_conditioning_scale": 1.0,
269
+ "guess_mode": false,
270
+ "control_guidance_start": 0.0,
271
+ "control_guidance_end": 1.0
272
+ },
273
+ "controlnet_ip2p": {
274
+ "enable": false,
275
+ "controlnet_conditioning_scale": 0.5,
276
+ "guess_mode": false,
277
+ "control_guidance_start": 0.0,
278
+ "control_guidance_end": 1.0
279
+ },
280
+ "controlnet_ref": {
281
+ "enable": false,
282
+ "use_frame_as_ref_image": false,
283
+ "use_1st_frame_as_ref_image": false,
284
+ "ref_image": "ref_image/path_to_your_ref_img.jpg",
285
+ "attention_auto_machine_weight": 1.0,
286
+ "gn_auto_machine_weight": 1.0,
287
+ "style_fidelity": 0.25,
288
+ "reference_attn": true,
289
+ "reference_adain": false
290
+ }
291
+ },
292
+ "output":{
293
+ "format" : "mp4",
294
+ "fps" : 8,
295
+ "encode_param":{
296
+ "crf": 10
297
+ }
298
+ }
299
+ }
animate/config/prompts/region_sample3.json ADDED
@@ -0,0 +1,299 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "sample",
3
+ "path": "share/Stable-diffusion/mistoonAnime_v20.safetensors",
4
+ "motion_module": "models/motion-module/mm_sd_v15_v2.ckpt",
5
+ "compile": false,
6
+ "seed": [
7
+ 12345
8
+ ],
9
+ "scheduler": "k_dpmpp_sde",
10
+ "steps": 20,
11
+ "guidance_scale": 10,
12
+ "unet_batch_size": 1,
13
+ "clip_skip": 2,
14
+ "prompt_fixed_ratio": 0.5,
15
+ "head_prompt": "(style of studio ghibli:1.2), (masterpiece, best quality)",
16
+ "prompt_map": {
17
+ "0": "forest, outdoors,"
18
+ },
19
+ "tail_prompt": "",
20
+ "n_prompt": [
21
+ "(worst quality:2), (bad quality:2), (normal quality:2), lowers, bad anatomy, bad hands, (multiple views),"
22
+ ],
23
+ "lora_map": {
24
+ "share/models/Lora/Ghibli_v6.safetensors": 1.0
25
+ },
26
+ "motion_lora_map": {
27
+ },
28
+ "ip_adapter_map": {
29
+ "enable": true,
30
+ "input_image_dir": "ip_adapter_image/cat",
31
+ "prompt_fixed_ratio": 0.5,
32
+ "save_input_image": true,
33
+ "resized_to_square": false,
34
+ "scale": 0.5,
35
+ "is_plus_face": false,
36
+ "is_plus": true,
37
+ "is_light": false
38
+ },
39
+ "img2img_map":{
40
+ "enable": true,
41
+ "init_img_dir" : "init_imgs/sample1",
42
+ "save_init_image": true,
43
+ "denoising_strength" : 0.85
44
+ },
45
+ "region_map" : {
46
+ "0":{
47
+ "enable": true,
48
+ "mask_dir" : "mask/sample1",
49
+ "save_mask": true,
50
+ "is_init_img" : false,
51
+ "condition":{
52
+ "prompt_fixed_ratio": 0.5,
53
+ "head_prompt": "(masterpiece, best quality)",
54
+ "prompt_map": {
55
+ "0": "cyberpunk,robot cat, robot"
56
+ },
57
+ "tail_prompt": "",
58
+ "ip_adapter_map": {
59
+ "enable": true,
60
+ "input_image_dir": "ip_adapter_image/cyberpunk",
61
+ "prompt_fixed_ratio": 0.5,
62
+ "save_input_image": true,
63
+ "resized_to_square": false
64
+ }
65
+ }
66
+ },
67
+ "background":{
68
+ "is_init_img" : false,
69
+ "hint" : "background's condition refers to the one in root"
70
+ }
71
+ },
72
+ "controlnet_map": {
73
+ "input_image_dir" : "controlnet_image/cat",
74
+ "max_samples_on_vram": 0,
75
+ "max_models_on_vram" : 1,
76
+ "save_detectmap": true,
77
+ "preprocess_on_gpu": true,
78
+ "is_loop": true,
79
+
80
+ "controlnet_tile":{
81
+ "enable": true,
82
+ "use_preprocessor":true,
83
+ "preprocessor":{
84
+ "type" : "none",
85
+ "param":{
86
+ }
87
+ },
88
+ "guess_mode":false,
89
+ "controlnet_conditioning_scale": 1.0,
90
+ "control_guidance_start": 0.0,
91
+ "control_guidance_end": 1.0,
92
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
93
+ },
94
+ "controlnet_ip2p":{
95
+ "enable": true,
96
+ "use_preprocessor":true,
97
+ "guess_mode":false,
98
+ "controlnet_conditioning_scale":0.5,
99
+ "control_guidance_start": 0.0,
100
+ "control_guidance_end": 1.0,
101
+ "control_scale_list":[]
102
+ },
103
+ "controlnet_lineart_anime":{
104
+ "enable": true,
105
+ "use_preprocessor":true,
106
+ "guess_mode":false,
107
+ "controlnet_conditioning_scale": 1.0,
108
+ "control_guidance_start": 0.0,
109
+ "control_guidance_end": 1.0,
110
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
111
+ },
112
+ "controlnet_openpose":{
113
+ "enable": true,
114
+ "use_preprocessor":true,
115
+ "guess_mode":false,
116
+ "controlnet_conditioning_scale": 1.0,
117
+ "control_guidance_start": 0.0,
118
+ "control_guidance_end": 1.0,
119
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
120
+ },
121
+ "controlnet_softedge":{
122
+ "enable": true,
123
+ "use_preprocessor":true,
124
+ "preprocessor":{
125
+ "type" : "softedge_pidsafe",
126
+ "param":{
127
+ }
128
+ },
129
+ "guess_mode":false,
130
+ "controlnet_conditioning_scale": 1.0,
131
+ "control_guidance_start": 0.0,
132
+ "control_guidance_end": 1.0,
133
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
134
+ },
135
+ "controlnet_shuffle": {
136
+ "enable": true,
137
+ "use_preprocessor":true,
138
+ "guess_mode":false,
139
+ "controlnet_conditioning_scale": 1.0,
140
+ "control_guidance_start": 0.0,
141
+ "control_guidance_end": 1.0,
142
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
143
+ },
144
+ "controlnet_depth": {
145
+ "enable": true,
146
+ "use_preprocessor":true,
147
+ "guess_mode":false,
148
+ "controlnet_conditioning_scale": 1.0,
149
+ "control_guidance_start": 0.0,
150
+ "control_guidance_end": 1.0,
151
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
152
+ },
153
+ "controlnet_canny": {
154
+ "enable": true,
155
+ "use_preprocessor":true,
156
+ "guess_mode":false,
157
+ "controlnet_conditioning_scale": 1.0,
158
+ "control_guidance_start": 0.0,
159
+ "control_guidance_end": 1.0,
160
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
161
+ },
162
+ "controlnet_inpaint": {
163
+ "enable": true,
164
+ "use_preprocessor":true,
165
+ "guess_mode":false,
166
+ "controlnet_conditioning_scale": 1.0,
167
+ "control_guidance_start": 0.0,
168
+ "control_guidance_end": 1.0,
169
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
170
+ },
171
+ "controlnet_lineart": {
172
+ "enable": true,
173
+ "use_preprocessor":true,
174
+ "guess_mode":false,
175
+ "controlnet_conditioning_scale": 1.0,
176
+ "control_guidance_start": 0.0,
177
+ "control_guidance_end": 1.0,
178
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
179
+ },
180
+ "controlnet_mlsd": {
181
+ "enable": true,
182
+ "use_preprocessor":true,
183
+ "guess_mode":false,
184
+ "controlnet_conditioning_scale": 1.0,
185
+ "control_guidance_start": 0.0,
186
+ "control_guidance_end": 1.0,
187
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
188
+ },
189
+ "controlnet_normalbae": {
190
+ "enable": true,
191
+ "use_preprocessor":true,
192
+ "guess_mode":false,
193
+ "controlnet_conditioning_scale": 0.25,
194
+ "control_guidance_start": 0.0,
195
+ "control_guidance_end": 1.0,
196
+ "control_scale_list":[]
197
+ },
198
+ "controlnet_scribble": {
199
+ "enable": true,
200
+ "use_preprocessor":true,
201
+ "guess_mode":false,
202
+ "controlnet_conditioning_scale": 1.0,
203
+ "control_guidance_start": 0.0,
204
+ "control_guidance_end": 1.0,
205
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
206
+ },
207
+ "controlnet_seg": {
208
+ "enable": true,
209
+ "use_preprocessor":true,
210
+ "guess_mode":false,
211
+ "controlnet_conditioning_scale": 1.0,
212
+ "control_guidance_start": 0.0,
213
+ "control_guidance_end": 1.0,
214
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
215
+ },
216
+ "qr_code_monster_v1": {
217
+ "enable": true,
218
+ "use_preprocessor":true,
219
+ "guess_mode":false,
220
+ "controlnet_conditioning_scale": 1.0,
221
+ "control_guidance_start": 0.0,
222
+ "control_guidance_end": 1.0,
223
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
224
+ },
225
+ "qr_code_monster_v2": {
226
+ "enable": true,
227
+ "use_preprocessor":true,
228
+ "guess_mode":false,
229
+ "controlnet_conditioning_scale": 1.0,
230
+ "control_guidance_start": 0.0,
231
+ "control_guidance_end": 1.0,
232
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
233
+ },
234
+ "controlnet_mediapipe_face": {
235
+ "enable": true,
236
+ "use_preprocessor":true,
237
+ "guess_mode":false,
238
+ "controlnet_conditioning_scale": 1.0,
239
+ "control_guidance_start": 0.0,
240
+ "control_guidance_end": 1.0,
241
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
242
+ },
243
+ "controlnet_ref": {
244
+ "enable": false,
245
+ "ref_image": "ref_image/ref_sample.png",
246
+ "attention_auto_machine_weight": 0.3,
247
+ "gn_auto_machine_weight": 0.3,
248
+ "style_fidelity": 0.5,
249
+ "reference_attn": true,
250
+ "reference_adain": false,
251
+ "scale_pattern":[1.0]
252
+ }
253
+ },
254
+ "upscale_config": {
255
+ "scheduler": "k_dpmpp_sde",
256
+ "steps": 20,
257
+ "strength": 0.5,
258
+ "guidance_scale": 10,
259
+ "controlnet_tile": {
260
+ "enable": true,
261
+ "controlnet_conditioning_scale": 1.0,
262
+ "guess_mode": false,
263
+ "control_guidance_start": 0.0,
264
+ "control_guidance_end": 1.0
265
+ },
266
+ "controlnet_line_anime": {
267
+ "enable": false,
268
+ "controlnet_conditioning_scale": 1.0,
269
+ "guess_mode": false,
270
+ "control_guidance_start": 0.0,
271
+ "control_guidance_end": 1.0
272
+ },
273
+ "controlnet_ip2p": {
274
+ "enable": false,
275
+ "controlnet_conditioning_scale": 0.5,
276
+ "guess_mode": false,
277
+ "control_guidance_start": 0.0,
278
+ "control_guidance_end": 1.0
279
+ },
280
+ "controlnet_ref": {
281
+ "enable": false,
282
+ "use_frame_as_ref_image": false,
283
+ "use_1st_frame_as_ref_image": false,
284
+ "ref_image": "ref_image/path_to_your_ref_img.jpg",
285
+ "attention_auto_machine_weight": 1.0,
286
+ "gn_auto_machine_weight": 1.0,
287
+ "style_fidelity": 0.25,
288
+ "reference_attn": true,
289
+ "reference_adain": false
290
+ }
291
+ },
292
+ "output":{
293
+ "format" : "mp4",
294
+ "fps" : 8,
295
+ "encode_param":{
296
+ "crf": 10
297
+ }
298
+ }
299
+ }
animate/config/prompts/region_txt2img.json ADDED
@@ -0,0 +1,324 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "sample",
3
+ "path": "share/Stable-diffusion/mistoonAnime_v20.safetensors",
4
+ "motion_module": "models/motion-module/mm_sd_v15_v2.ckpt",
5
+ "compile": false,
6
+ "seed": [
7
+ -1
8
+ ],
9
+ "scheduler": "k_dpmpp_sde",
10
+ "steps": 20,
11
+ "guidance_scale": 10,
12
+ "unet_batch_size": 1,
13
+ "clip_skip": 2,
14
+ "prompt_fixed_ratio": 0.5,
15
+ "head_prompt": "(style of studio ghibli:1.2), (masterpiece, best quality)",
16
+ "prompt_map": {
17
+ "0": "town, outdoors,"
18
+ },
19
+ "tail_prompt": "",
20
+ "n_prompt": [
21
+ "(worst quality:2), (bad quality:2), (normal quality:2), lowers, bad anatomy, bad hands, (multiple views),"
22
+ ],
23
+ "lora_map": {
24
+ },
25
+ "motion_lora_map": {
26
+ },
27
+ "ip_adapter_map": {
28
+ "enable": true,
29
+ "input_image_dir": "ip_adapter_image/cyberpunk",
30
+ "prompt_fixed_ratio": 0.5,
31
+ "save_input_image": true,
32
+ "resized_to_square": false,
33
+ "scale": 0.5,
34
+ "is_plus_face": false,
35
+ "is_plus": true,
36
+ "is_light": false
37
+ },
38
+ "img2img_map":{
39
+ "enable": false,
40
+ "init_img_dir" : "init_imgs/sample1",
41
+ "save_init_image": true,
42
+ "denoising_strength" : 0.7
43
+ },
44
+ "region_map" : {
45
+ "0":{
46
+ "enable": true,
47
+ "crop_generation_rate": 0.1,
48
+ "mask_dir" : "mask/area0",
49
+ "save_mask": true,
50
+ "is_init_img" : false,
51
+ "condition":{
52
+ "prompt_fixed_ratio": 1.0,
53
+ "head_prompt": "",
54
+ "prompt_map": {
55
+ "0": "((standing)),1girl, upper body,",
56
+ "8": "((smile)),1girl, upper body,",
57
+ "16": "(((arms_up))),1girl, upper body, ",
58
+ "24": "(((waving ))),1girl, upper body"
59
+ },
60
+ "tail_prompt": "(style of studio ghibli:1.2), (masterpiece, best quality)",
61
+ "ip_adapter_map": {
62
+ "enable": true,
63
+ "input_image_dir": "ip_adapter_image/girl",
64
+ "prompt_fixed_ratio": 0.5,
65
+ "save_input_image": true,
66
+ "resized_to_square": false
67
+ }
68
+ }
69
+ },
70
+ "1":{
71
+ "enable": true,
72
+ "crop_generation_rate": 0.1,
73
+ "mask_dir" : "mask/area1",
74
+ "save_mask": true,
75
+ "is_init_img" : false,
76
+ "condition":{
77
+ "prompt_fixed_ratio": 0.5,
78
+ "head_prompt": "((car)),(style of studio ghibli:1.2), (masterpiece, best quality)",
79
+ "prompt_map": {
80
+ "0": "street, road,no human"
81
+ },
82
+ "tail_prompt": "",
83
+ "ip_adapter_map": {
84
+ "enable": true,
85
+ "input_image_dir": "ip_adapter_image/cyberpunk",
86
+ "prompt_fixed_ratio": 0.5,
87
+ "save_input_image": true,
88
+ "resized_to_square": false
89
+ }
90
+ }
91
+ },
92
+ "background":{
93
+ "is_init_img" : false,
94
+ "hint" : "background's condition refers to the one in root"
95
+ }
96
+ },
97
+ "controlnet_map": {
98
+ "input_image_dir" : "",
99
+ "max_samples_on_vram": 0,
100
+ "max_models_on_vram" : 1,
101
+ "save_detectmap": true,
102
+ "preprocess_on_gpu": true,
103
+ "is_loop": true,
104
+
105
+ "controlnet_tile":{
106
+ "enable": true,
107
+ "use_preprocessor":true,
108
+ "preprocessor":{
109
+ "type" : "none",
110
+ "param":{
111
+ }
112
+ },
113
+ "guess_mode":false,
114
+ "controlnet_conditioning_scale": 1.0,
115
+ "control_guidance_start": 0.0,
116
+ "control_guidance_end": 1.0,
117
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
118
+ },
119
+ "controlnet_ip2p":{
120
+ "enable": true,
121
+ "use_preprocessor":true,
122
+ "guess_mode":false,
123
+ "controlnet_conditioning_scale": 1.0,
124
+ "control_guidance_start": 0.0,
125
+ "control_guidance_end": 1.0,
126
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
127
+ },
128
+ "controlnet_lineart_anime":{
129
+ "enable": true,
130
+ "use_preprocessor":true,
131
+ "guess_mode":false,
132
+ "controlnet_conditioning_scale": 1.0,
133
+ "control_guidance_start": 0.0,
134
+ "control_guidance_end": 1.0,
135
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
136
+ },
137
+ "controlnet_openpose":{
138
+ "enable": true,
139
+ "use_preprocessor":true,
140
+ "guess_mode":false,
141
+ "controlnet_conditioning_scale": 1.0,
142
+ "control_guidance_start": 0.0,
143
+ "control_guidance_end": 1.0,
144
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
145
+ },
146
+ "controlnet_softedge":{
147
+ "enable": true,
148
+ "use_preprocessor":true,
149
+ "preprocessor":{
150
+ "type" : "softedge_pidsafe",
151
+ "param":{
152
+ }
153
+ },
154
+ "guess_mode":false,
155
+ "controlnet_conditioning_scale": 1.0,
156
+ "control_guidance_start": 0.0,
157
+ "control_guidance_end": 1.0,
158
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
159
+ },
160
+ "controlnet_shuffle": {
161
+ "enable": true,
162
+ "use_preprocessor":true,
163
+ "guess_mode":false,
164
+ "controlnet_conditioning_scale": 1.0,
165
+ "control_guidance_start": 0.0,
166
+ "control_guidance_end": 1.0,
167
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
168
+ },
169
+ "controlnet_depth": {
170
+ "enable": true,
171
+ "use_preprocessor":true,
172
+ "guess_mode":false,
173
+ "controlnet_conditioning_scale": 1.0,
174
+ "control_guidance_start": 0.0,
175
+ "control_guidance_end": 1.0,
176
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
177
+ },
178
+ "controlnet_canny": {
179
+ "enable": true,
180
+ "use_preprocessor":true,
181
+ "guess_mode":false,
182
+ "controlnet_conditioning_scale": 1.0,
183
+ "control_guidance_start": 0.0,
184
+ "control_guidance_end": 1.0,
185
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
186
+ },
187
+ "controlnet_inpaint": {
188
+ "enable": true,
189
+ "use_preprocessor":true,
190
+ "guess_mode":false,
191
+ "controlnet_conditioning_scale": 1.0,
192
+ "control_guidance_start": 0.0,
193
+ "control_guidance_end": 1.0,
194
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
195
+ },
196
+ "controlnet_lineart": {
197
+ "enable": true,
198
+ "use_preprocessor":true,
199
+ "guess_mode":false,
200
+ "controlnet_conditioning_scale": 1.0,
201
+ "control_guidance_start": 0.0,
202
+ "control_guidance_end": 1.0,
203
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
204
+ },
205
+ "controlnet_mlsd": {
206
+ "enable": true,
207
+ "use_preprocessor":true,
208
+ "guess_mode":false,
209
+ "controlnet_conditioning_scale": 1.0,
210
+ "control_guidance_start": 0.0,
211
+ "control_guidance_end": 1.0,
212
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
213
+ },
214
+ "controlnet_normalbae": {
215
+ "enable": true,
216
+ "use_preprocessor":true,
217
+ "guess_mode":false,
218
+ "controlnet_conditioning_scale": 1.0,
219
+ "control_guidance_start": 0.0,
220
+ "control_guidance_end": 1.0,
221
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
222
+ },
223
+ "controlnet_scribble": {
224
+ "enable": true,
225
+ "use_preprocessor":true,
226
+ "guess_mode":false,
227
+ "controlnet_conditioning_scale": 1.0,
228
+ "control_guidance_start": 0.0,
229
+ "control_guidance_end": 1.0,
230
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
231
+ },
232
+ "controlnet_seg": {
233
+ "enable": true,
234
+ "use_preprocessor":true,
235
+ "guess_mode":false,
236
+ "controlnet_conditioning_scale": 1.0,
237
+ "control_guidance_start": 0.0,
238
+ "control_guidance_end": 1.0,
239
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
240
+ },
241
+ "qr_code_monster_v1": {
242
+ "enable": true,
243
+ "use_preprocessor":true,
244
+ "guess_mode":false,
245
+ "controlnet_conditioning_scale": 1.0,
246
+ "control_guidance_start": 0.0,
247
+ "control_guidance_end": 1.0,
248
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
249
+ },
250
+ "qr_code_monster_v2": {
251
+ "enable": true,
252
+ "use_preprocessor":true,
253
+ "guess_mode":false,
254
+ "controlnet_conditioning_scale": 1.0,
255
+ "control_guidance_start": 0.0,
256
+ "control_guidance_end": 1.0,
257
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
258
+ },
259
+ "controlnet_mediapipe_face": {
260
+ "enable": true,
261
+ "use_preprocessor":true,
262
+ "guess_mode":false,
263
+ "controlnet_conditioning_scale": 1.0,
264
+ "control_guidance_start": 0.0,
265
+ "control_guidance_end": 1.0,
266
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
267
+ },
268
+ "controlnet_ref": {
269
+ "enable": false,
270
+ "ref_image": "ref_image/ref_sample.png",
271
+ "attention_auto_machine_weight": 0.3,
272
+ "gn_auto_machine_weight": 0.3,
273
+ "style_fidelity": 0.5,
274
+ "reference_attn": true,
275
+ "reference_adain": false,
276
+ "scale_pattern":[1.0]
277
+ }
278
+ },
279
+ "upscale_config": {
280
+ "scheduler": "k_dpmpp_sde",
281
+ "steps": 20,
282
+ "strength": 0.5,
283
+ "guidance_scale": 10,
284
+ "controlnet_tile": {
285
+ "enable": true,
286
+ "controlnet_conditioning_scale": 1.0,
287
+ "guess_mode": false,
288
+ "control_guidance_start": 0.0,
289
+ "control_guidance_end": 1.0
290
+ },
291
+ "controlnet_line_anime": {
292
+ "enable": false,
293
+ "controlnet_conditioning_scale": 1.0,
294
+ "guess_mode": false,
295
+ "control_guidance_start": 0.0,
296
+ "control_guidance_end": 1.0
297
+ },
298
+ "controlnet_ip2p": {
299
+ "enable": false,
300
+ "controlnet_conditioning_scale": 0.5,
301
+ "guess_mode": false,
302
+ "control_guidance_start": 0.0,
303
+ "control_guidance_end": 1.0
304
+ },
305
+ "controlnet_ref": {
306
+ "enable": false,
307
+ "use_frame_as_ref_image": false,
308
+ "use_1st_frame_as_ref_image": false,
309
+ "ref_image": "ref_image/path_to_your_ref_img.jpg",
310
+ "attention_auto_machine_weight": 1.0,
311
+ "gn_auto_machine_weight": 1.0,
312
+ "style_fidelity": 0.25,
313
+ "reference_attn": true,
314
+ "reference_adain": false
315
+ }
316
+ },
317
+ "output":{
318
+ "format" : "mp4",
319
+ "fps" : 8,
320
+ "encode_param":{
321
+ "crf": 10
322
+ }
323
+ }
324
+ }
animate/config/prompts/sample_lcm.json ADDED
@@ -0,0 +1,298 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "simple",
3
+ "path": "share/Stable-diffusion/mistoonAnime_v20.safetensors",
4
+ "motion_module": "models/motion-module/mm_sd_v15_v2.ckpt",
5
+ "lcm_map":{
6
+ "enable":true,
7
+ "start_scale":0.15,
8
+ "end_scale":0.75,
9
+ "gradient_start":0.2,
10
+ "gradient_end":0.75
11
+ },
12
+ "compile": false,
13
+ "seed": [
14
+ 123456
15
+ ],
16
+ "scheduler": "euler_a",
17
+ "steps": 8,
18
+ "guidance_scale": 3,
19
+ "clip_skip": 2,
20
+ "prompt_fixed_ratio": 1.0,
21
+ "head_prompt": "1girl, wizard, circlet, earrings, jewelry, purple hair,",
22
+ "prompt_map": {
23
+ "0": "",
24
+ "8": "((fire magic spell, fire background))",
25
+ "16": "((ice magic spell, ice background))",
26
+ "24": "((thunder magic spell, thunder background))",
27
+ "32": "((skull magic spell, skull background))",
28
+ "40": "((wind magic spell, wind background))",
29
+ "48": "((stone magic spell, stone background))",
30
+ "56": "((holy magic spell, holy background))",
31
+ "64": "((star magic spell, star background))",
32
+ "72": "((plant magic spell, plant background))",
33
+ "80": "((meteor magic spell, meteor background))"
34
+ },
35
+ "tail_prompt": "",
36
+ "n_prompt": [
37
+ "(worst quality, low quality:1.4),nudity,border,text, patreon, easynegative, negative_hand-neg"
38
+ ],
39
+ "is_single_prompt_mode":false,
40
+ "lora_map": {
41
+ "share/Lora/add_detail.safetensors":1.0
42
+ },
43
+ "ip_adapter_map": {
44
+ "enable": false,
45
+ "input_image_dir": "ip_adapter_image/test",
46
+ "save_input_image": true,
47
+ "resized_to_square": false,
48
+ "scale": 0.5,
49
+ "is_plus_face": false,
50
+ "is_plus": true
51
+ },
52
+ "img2img_map":{
53
+ "enable": false,
54
+ "init_img_dir" : "init_imgs/test",
55
+ "save_init_image": true,
56
+ "denoising_strength" : 0.8
57
+ },
58
+ "region_map" : {
59
+ "0":{
60
+ "enable":false,
61
+ "mask_dir" : "mask/r0",
62
+ "save_mask": true,
63
+ "is_init_img" : false,
64
+ "condition":{
65
+ "prompt_fixed_ratio": 0.5,
66
+ "head_prompt": "1girl, wizard, circlet, earrings, jewelry, purple hair,",
67
+ "prompt_map": {
68
+ "0": "",
69
+ "8": "((fire magic spell, fire background))",
70
+ "16": "((ice magic spell, ice background))",
71
+ "24": "((thunder magic spell, thunder background))",
72
+ "32": "((skull magic spell, skull background))",
73
+ "40": "((wind magic spell, wind background))",
74
+ "48": "((stone magic spell, stone background))",
75
+ "56": "((holy magic spell, holy background))",
76
+ "64": "((star magic spell, star background))",
77
+ "72": "((plant magic spell, plant background))",
78
+ "80": "((meteor magic spell, meteor background))"
79
+ },
80
+ "tail_prompt": "",
81
+ "ip_adapter_map": {
82
+ "enable": false,
83
+ "input_image_dir": "ip_adapter_image/test",
84
+ "save_input_image": true,
85
+ "resized_to_square": false
86
+ }
87
+ }
88
+ },
89
+ "background":{
90
+ "is_init_img" : false,
91
+ "hint" : "background's condition refers to the one in root"
92
+ }
93
+ },
94
+ "controlnet_map": {
95
+ "input_image_dir" : "controlnet_image/test9999",
96
+ "max_samples_on_vram": 200,
97
+ "max_models_on_vram" : 3,
98
+ "save_detectmap": true,
99
+ "preprocess_on_gpu": true,
100
+ "is_loop": true,
101
+
102
+ "controlnet_tile":{
103
+ "enable": true,
104
+ "use_preprocessor":true,
105
+ "preprocessor":{
106
+ "type" : "none",
107
+ "param":{
108
+ }
109
+ },
110
+ "guess_mode":false,
111
+ "controlnet_conditioning_scale": 1.0,
112
+ "control_guidance_start": 0.0,
113
+ "control_guidance_end": 1.0,
114
+ "control_scale_list":[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]
115
+ },
116
+ "controlnet_ip2p":{
117
+ "enable": true,
118
+ "use_preprocessor":true,
119
+ "guess_mode":false,
120
+ "controlnet_conditioning_scale": 1.0,
121
+ "control_guidance_start": 0.0,
122
+ "control_guidance_end": 1.0,
123
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
124
+ },
125
+ "controlnet_lineart_anime":{
126
+ "enable": true,
127
+ "use_preprocessor":true,
128
+ "guess_mode":false,
129
+ "controlnet_conditioning_scale": 1.0,
130
+ "control_guidance_start": 0.0,
131
+ "control_guidance_end": 1.0,
132
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
133
+ },
134
+ "controlnet_openpose":{
135
+ "enable": true,
136
+ "use_preprocessor":true,
137
+ "preprocessor":{
138
+ "type" : "dwpose",
139
+ "param":{
140
+ }
141
+ },
142
+ "guess_mode":false,
143
+ "controlnet_conditioning_scale": 1.0,
144
+ "control_guidance_start": 0.0,
145
+ "control_guidance_end": 1.0
146
+ },
147
+ "controlnet_softedge":{
148
+ "enable": true,
149
+ "use_preprocessor":true,
150
+ "preprocessor":{
151
+ "type" : "softedge_pidsafe",
152
+ "param":{
153
+ }
154
+ },
155
+ "guess_mode":false,
156
+ "controlnet_conditioning_scale": 1.0,
157
+ "control_guidance_start": 0.0,
158
+ "control_guidance_end": 1.0,
159
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
160
+ },
161
+ "controlnet_shuffle": {
162
+ "enable": true,
163
+ "use_preprocessor":true,
164
+ "guess_mode":false,
165
+ "controlnet_conditioning_scale": 1.0,
166
+ "control_guidance_start": 0.0,
167
+ "control_guidance_end": 1.0,
168
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
169
+ },
170
+ "controlnet_depth": {
171
+ "enable": true,
172
+ "use_preprocessor":true,
173
+ "guess_mode":false,
174
+ "controlnet_conditioning_scale": 1.0,
175
+ "control_guidance_start": 0.0,
176
+ "control_guidance_end": 1.0,
177
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
178
+ },
179
+ "controlnet_canny": {
180
+ "enable": true,
181
+ "use_preprocessor":true,
182
+ "guess_mode":false,
183
+ "controlnet_conditioning_scale": 1.0,
184
+ "control_guidance_start": 0.0,
185
+ "control_guidance_end": 1.0,
186
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
187
+ },
188
+ "controlnet_inpaint": {
189
+ "enable": true,
190
+ "use_preprocessor":true,
191
+ "guess_mode":false,
192
+ "controlnet_conditioning_scale": 1.0,
193
+ "control_guidance_start": 0.0,
194
+ "control_guidance_end": 1.0,
195
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
196
+ },
197
+ "controlnet_lineart": {
198
+ "enable": true,
199
+ "use_preprocessor":true,
200
+ "guess_mode":false,
201
+ "controlnet_conditioning_scale": 0.5,
202
+ "control_guidance_start": 0.0,
203
+ "control_guidance_end": 1.0,
204
+ "control_scale_list":[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]
205
+ },
206
+ "controlnet_mlsd": {
207
+ "enable": true,
208
+ "use_preprocessor":true,
209
+ "guess_mode":false,
210
+ "controlnet_conditioning_scale": 1.0,
211
+ "control_guidance_start": 0.0,
212
+ "control_guidance_end": 1.0,
213
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
214
+ },
215
+ "controlnet_normalbae": {
216
+ "enable": true,
217
+ "use_preprocessor":true,
218
+ "guess_mode":false,
219
+ "controlnet_conditioning_scale": 1.0,
220
+ "control_guidance_start": 0.0,
221
+ "control_guidance_end": 1.0,
222
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
223
+ },
224
+ "controlnet_scribble": {
225
+ "enable": true,
226
+ "use_preprocessor":true,
227
+ "guess_mode":false,
228
+ "controlnet_conditioning_scale": 1.0,
229
+ "control_guidance_start": 0.0,
230
+ "control_guidance_end": 1.0,
231
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
232
+ },
233
+ "controlnet_seg": {
234
+ "enable": true,
235
+ "use_preprocessor":true,
236
+ "guess_mode":false,
237
+ "controlnet_conditioning_scale": 1.0,
238
+ "control_guidance_start": 0.0,
239
+ "control_guidance_end": 1.0,
240
+ "control_scale_list":[0.5,0.4,0.3,0.2,0.1]
241
+ },
242
+ "controlnet_ref": {
243
+ "enable": false,
244
+ "ref_image": "ref_image/naga.png",
245
+ "attention_auto_machine_weight": 0.5,
246
+ "gn_auto_machine_weight": 0.5,
247
+ "style_fidelity": 0.5,
248
+ "reference_attn": true,
249
+ "reference_adain": true,
250
+ "scale_pattern":[1.0]
251
+ }
252
+ },
253
+ "upscale_config": {
254
+ "scheduler": "k_dpmpp_sde",
255
+ "steps": 20,
256
+ "strength": 0.5,
257
+ "guidance_scale": 10,
258
+ "controlnet_tile": {
259
+ "enable": true,
260
+ "controlnet_conditioning_scale": 1.0,
261
+ "guess_mode": false,
262
+ "control_guidance_start": 0.0,
263
+ "control_guidance_end": 1.0
264
+ },
265
+ "controlnet_line_anime": {
266
+ "enable": false,
267
+ "controlnet_conditioning_scale": 1.0,
268
+ "guess_mode": false,
269
+ "control_guidance_start": 0.0,
270
+ "control_guidance_end": 1.0
271
+ },
272
+ "controlnet_ip2p": {
273
+ "enable": false,
274
+ "controlnet_conditioning_scale": 0.5,
275
+ "guess_mode": false,
276
+ "control_guidance_start": 0.0,
277
+ "control_guidance_end": 1.0
278
+ },
279
+ "controlnet_ref": {
280
+ "enable": false,
281
+ "use_frame_as_ref_image": false,
282
+ "use_1st_frame_as_ref_image": false,
283
+ "ref_image": "ref_image/path_to_your_ref_img.jpg",
284
+ "attention_auto_machine_weight": 1.0,
285
+ "gn_auto_machine_weight": 1.0,
286
+ "style_fidelity": 0.25,
287
+ "reference_attn": true,
288
+ "reference_adain": false
289
+ }
290
+ },
291
+ "output":{
292
+ "format" : "mp4",
293
+ "fps" : 8,
294
+ "encode_param":{
295
+ "crf": 10
296
+ }
297
+ }
298
+ }
animate/config/prompts/to_8fps_Frames.bat ADDED
@@ -0,0 +1 @@
 
 
1
+ ffmpeg -i %1 -start_number 0 -vf "scale=512:768,fps=8" %%04d.png
animate/data/.gitignore ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ *
2
+ !.gitignore
3
+ !/models/
4
+ !/embeddings/
5
+ !/rife/
animate/data/controlnet_image/cat/controlnet_ip2p/00000000.png ADDED

Git LFS Details

  • SHA256: 2a9f75b633b2782e23fb72d6bccd72bfb6d7b9e208117e1c140d84c72b11d18b
  • Pointer size: 131 Bytes
  • Size of remote file: 709 kB
animate/data/controlnet_image/cat/controlnet_ip2p/00000001.png ADDED

Git LFS Details

  • SHA256: ccf1524c1cfc8a3201beb64d88916fafdb0d232e3ca73d90d0394acb1182576b
  • Pointer size: 131 Bytes
  • Size of remote file: 716 kB
animate/data/controlnet_image/cat/controlnet_ip2p/00000002.png ADDED

Git LFS Details

  • SHA256: 91829b57b7c7fe953c065579b449d5343ed4bfa5f19afb47f558ca0f86920fd7
  • Pointer size: 131 Bytes
  • Size of remote file: 717 kB
animate/data/controlnet_image/cat/controlnet_ip2p/00000003.png ADDED

Git LFS Details

  • SHA256: f9315c95b78bd42cdb76022fe49d2f470045e6697e6bf589c17fad78d451e812
  • Pointer size: 131 Bytes
  • Size of remote file: 711 kB
animate/data/controlnet_image/cat/controlnet_ip2p/00000004.png ADDED

Git LFS Details

  • SHA256: 0d223014da89119f6fd01b39b8298907f163522437b5e6f2fb4baf2f72b20e62
  • Pointer size: 131 Bytes
  • Size of remote file: 707 kB
animate/data/controlnet_image/cat/controlnet_ip2p/00000005.png ADDED

Git LFS Details

  • SHA256: 96562f566944d566ab2ef2d76a9f5634017d13a7e8e3cb327c96e52b93e3d3ca
  • Pointer size: 131 Bytes
  • Size of remote file: 704 kB
animate/data/controlnet_image/cat/controlnet_ip2p/00000006.png ADDED

Git LFS Details

  • SHA256: a4bf6767e4d854d4b84032e7e4520977f09b01c30c037d46b4cf1d56913d3d81
  • Pointer size: 131 Bytes
  • Size of remote file: 705 kB
animate/data/controlnet_image/cat/controlnet_ip2p/00000007.png ADDED

Git LFS Details

  • SHA256: 5000d11a22fba880a131be01686f05a26eed4140adf567c71c0f07938e6087b1
  • Pointer size: 131 Bytes
  • Size of remote file: 699 kB
animate/data/controlnet_image/cat/controlnet_ip2p/00000008.png ADDED

Git LFS Details

  • SHA256: d902208f4b1a4fac039d5a63cf476ff0bde3f47bbb59969637ea11f12ee10d0b
  • Pointer size: 131 Bytes
  • Size of remote file: 699 kB
animate/data/controlnet_image/cat/controlnet_ip2p/00000009.png ADDED

Git LFS Details

  • SHA256: f84488322a97130c3615ea8343669933868aa837f231942bb634abaa374b2875
  • Pointer size: 131 Bytes
  • Size of remote file: 700 kB
animate/data/controlnet_image/cat/controlnet_ip2p/00000010.png ADDED

Git LFS Details

  • SHA256: 2678497ef445be3d6e6ed7b85104d996f4619662843e03a6fb00374971d3c767
  • Pointer size: 131 Bytes
  • Size of remote file: 707 kB