Slight modifications on the original Prompt-to-Prompt repo to make it a portable library
This repo is a modified version of the original Prompt-to-Prompt repo
The directory prompt_to_prompt
in this repo is a portable library with APIs: edit
, refine
and reweight
in the original paper, together with a custom PromptToPromptPipeline
pipeline
This repo also implements a basic version of PnP-Inversion as an advanced inversion technique for editing
- CompVis/stable-diffusion-v1-4
- runwayml/stable-diffusion-v1-5 (deprecated)
PNDMScheduler, EulerDiscreteScheduler and FlowMatchEulerDiscreteScheduler in diffusers do not support accurate inversion
This repo requires the Unified-SD-Pipeline repo
-
Run
git clone https://github.com/zcc31415926/Unified-SD-Pipeline.git
to clone the foundation pipeline repo -
Run
git clone https://github.com/zcc31415926/Prompt-to-Prompt.git
to clone the prompt-to-prompt repo -
Copy all contents in
Prompt-to-Prompt
intoUnified-SD-Pipeline
, and merge the twoscripts
directories
Run ./edit.sh
, refine.sh
or reweight.sh
to edit / refine / reweight a given image according to given settings
Modify ./edit.sh
, refine.sh
or reweight.sh
for customized experimental settings