Using Regional Prompter with AnimateDiff's Prompt Travel (list object prompt support) #320
Replies: 1 comment
-
Test3 Latent Mode with Loras and Web UI In Latent Mode with Loras and Web UI (not forge), Region Separation is correctly worked! Results
Although I got some problems below in Latent Mode, I satisfied the results. It'll give us the ability to perform new kind of visual expressions.
Testing Environment thanks a lot, |
Beta Was this translation helpful? Give feedback.
-
Thank you with your great work!
For I plan to create short AI Animations with multiple people moving differently or looking different based on screenplay, I want Regional Prompter to associate with AnimateDiff's Prompt Travel. In other words, I need Stable Diffusion to play roles or present plays as if it were an entire troupe.
Testing Environment
OS: Linux 6.6.25-1-MANJARO
GPU: NVIDIA GeForce RTX 3060 VRAM 12G
CUDA Version: 12.3.107
Python Version: 3.11.8
PyTorch Version: 2.2.1+cu121
Gradio Version: 3.41.2
Webui-forge Version: f0.0.17v1.8.0rc-latest-276-g29be1da7
Regional Prompter Version: 50493ec
AnimateDiff(sd-forge-animatediff) Version: b20f7519
Dynamic Prompts Version: 1567e787
Test1 hack rp.py and regions.py
First, when I simply used Regional Prompter with AnimateDiff(with PromptTravel), I got the error messages below.
N.B. Without Prompt travel, Reagional Prompter worked well with AnimateDiff.
N.B. With sd-webui-dynamicprompts, there is No error like that.
According to these error messages, AnimateDiff with Prompt Travel gives list type object as positive or negative prompt. So I tried to add list type object support to rp.py and regions.py.
These belows are changes for rp.py and regions.py
(By the way, I'm not sure if it is correct or not since it is just a Machine-like replacement ;-p)
Then, I re-ran the webui, I got no such errors! So I think this hack may work with Attention Mode, at least.
Test2 Using AnimateDiff's Prompt Travel with Regional Prompter with "dynamic prompts extension"
Like below, I suddenly noticed that no error happened when I enabled sd-dynamic-prompts! HAHAHA! But why?
So, current most simple way with AnimateDiff's Prompt Travel is with using "dynamic prompts extension".
Animation Samples
These belows are sample Prompts and Results.
Regional Prompter Settings
Active = True
Generation Mode = Attention,Matrix
Base Ratio = 0
usebase = False
usecom = False
usencom = False
Main Splitting = Columns
Divide Ratio = 1,1
Width = 1024 #for the image size is 1024x576
Height = 576 #for the image size is 1024x576
flip","and";" = False
Overlay Ratio = 0.8 - 0.9
Presets: None
LoRA stop step = 0
LoRA Hires stop step = 0
LoRA in negative textencoder = 0
LoRA in negative U-net = 0
disable convert 'AND' to 'BREAK' = False
Use LoHa or other = False
Use BREAK to change chunks = False
debug = False
debug2 = True
with Regional Prompter
Prompt
without Regional Prompter (same seed, but prompt for each region was merged for AnimateDiff)
Prompt
I hope this idea helps you brush up your improvement of Regional Prompter.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions