Path: blob/main/diffusers/prompt_2_prompt_pipeline.ipynb
4749 views
Kernel: Unknown Kernel
Prompt2Prompt Pipeline
Prompt2Prompt allows the following edits:
ReplaceEdit (change words in prompt)
ReplaceEdit with local blend (change words in prompt, keep image part unrelated to changes constant)
RefineEdit (add words to prompt)
RefineEdit with local blend (add words to prompt, keep image part unrelated to changes constant)
ReweightEdit (modulate importance of words)
Abbreviated examples for the other edits:
ReplaceEdit with local blend
RefineEdit
RefineEdit with local blend
ReweightEdit
Side note: See this GitHub gist if you want to visualize the attention maps. This script was contributed by Umer Adil and the notebook by Parag Ekbote.
In [2]:
Out[2]:
cannot get type annotation for Parameter vae of <class 'diffusers_modules.git.pipeline_prompt2prompt.Prompt2PromptPipeline'>.
cannot get type annotation for Parameter text_encoder of <class 'diffusers_modules.git.pipeline_prompt2prompt.Prompt2PromptPipeline'>.
cannot get type annotation for Parameter tokenizer of <class 'diffusers_modules.git.pipeline_prompt2prompt.Prompt2PromptPipeline'>.
cannot get type annotation for Parameter unet of <class 'diffusers_modules.git.pipeline_prompt2prompt.Prompt2PromptPipeline'>.
cannot get type annotation for Parameter scheduler of <class 'diffusers_modules.git.pipeline_prompt2prompt.Prompt2PromptPipeline'>.
cannot get type annotation for Parameter safety_checker of <class 'diffusers_modules.git.pipeline_prompt2prompt.Prompt2PromptPipeline'>.
cannot get type annotation for Parameter feature_extractor of <class 'diffusers_modules.git.pipeline_prompt2prompt.Prompt2PromptPipeline'>.
cannot get type annotation for Parameter image_encoder of <class 'diffusers_modules.git.pipeline_prompt2prompt.Prompt2PromptPipeline'>.
cannot get type annotation for Parameter requires_safety_checker of <class 'diffusers_modules.git.pipeline_prompt2prompt.Prompt2PromptPipeline'>.
Loading pipeline components...: 0%| | 0/7 [00:00<?, ?it/s]
0%| | 0/50 [00:00<?, ?it/s]