CLIP Guided Stable Diffusion With Diffusers
hf-notebooksdiffusers
Export
CLIP Guided Stable Diffusion using dπ§¨ffusers
This notebook shows how to do CLIP guidance with Stable diffusion using diffusers libray. This allows you to use newly released CLIP models by LAION AI..
This notebook is based on the following amazing repos, all credits to the original authors!
Initial Setup
[1]
|ββββββββββββββββββββββββββββββββ| 229 kB 8.9 MB/s
|ββββββββββββββββββββββββββββββββ| 4.9 MB 68.2 MB/s
|ββββββββββββββββββββββββββββββββ| 53 kB 2.2 MB/s
|ββββββββββββββββββββββββββββββββ| 5.3 MB 51.1 MB/s
|ββββββββββββββββββββββββββββββββ| 163 kB 68.4 MB/s
|ββββββββββββββββββββββββββββββββ| 6.6 MB 46.5 MB/s
|ββββββββββββββββββββββββββββββββ| 55 kB 4.4 MB/s
|ββββββββββββββββββββββββββββββββ| 2.3 MB 56.0 MB/s
|ββββββββββββββββββββββββββββββββ| 57 kB 6.2 MB/s
|ββββββββββββββββββββββββββββββββ| 270 kB 48.4 MB/s
|ββββββββββββββββββββββββββββββββ| 112 kB 58.6 MB/s
|ββββββββββββββββββββββββββββββββ| 84 kB 4.2 MB/s
|ββββββββββββββββββββββββββββββββ| 54 kB 3.8 MB/s
|ββββββββββββββββββββββββββββββββ| 84 kB 2.4 MB/s
|ββββββββββββββββββββββββββββββββ| 212 kB 12.2 MB/s
|ββββββββββββββββββββββββββββββββ| 63 kB 2.7 MB/s
|ββββββββββββββββββββββββββββββββ| 80 kB 11.6 MB/s
|ββββββββββββββββββββββββββββββββ| 68 kB 8.0 MB/s
|ββββββββββββββββββββββββββββββββ| 46 kB 5.1 MB/s
|ββββββββββββββββββββββββββββββββ| 594 kB 68.0 MB/s
|ββββββββββββββββββββββββββββββββ| 4.0 MB 52.4 MB/s
|ββββββββββββββββββββββββββββββββ| 856 kB 66.2 MB/s
Building wheel for ffmpy (setup.py) ... done
Building wheel for python-multipart (setup.py) ... done
Authenticate with Hugging Face Hub
To use private and gated models on π€ Hugging Face Hub, login is required. If you are only using a public checkpoint (such as CompVis/stable-diffusion-v1-4 in this notebook), you can skip this step.
[2]
Login successful Your token has been saved to /root/.huggingface/token
CLIP Guided Stable Diffusion
[ ]
model_id
clip_model_id
scheduler plms
[ ]
[ ]
prompt
clip_prompt
num_samples
num_inference_steps
guidance_scale
clip_guidance_scale
num_cutouts
use_cutouts False
unfreeze_unet True
unfreeze_vae True
seed
[ ]