Instructions to use creative-graphic-design/collage-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use creative-graphic-design/collage-diffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("creative-graphic-design/collage-diffusion", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Publish Collage Diffusion pipeline at 20095cf1680b
Browse files
README.md
CHANGED
|
@@ -314,8 +314,8 @@ Install the pipeline package and `laygen` from commit-pinned GitHub source archi
|
|
| 314 |
|
| 315 |
```bash
|
| 316 |
pip install \
|
| 317 |
-
"laygen @ https://github.com/creative-graphic-design/design-generators/archive/
|
| 318 |
-
"collage-diffusion @ https://github.com/creative-graphic-design/design-generators/archive/
|
| 319 |
```
|
| 320 |
|
| 321 |
The Hub pipeline loads code from `creative-graphic-design/collage-diffusion` and weights from `sd2-community/stable-diffusion-2-1-base`. Before setting `trust_remote_code=True`, review the pipeline code in the [Collage Diffusion Hub repository](https://huggingface.co/creative-graphic-design/collage-diffusion); `diffusers` executes that code when it loads the custom pipeline.
|
|
|
|
| 314 |
|
| 315 |
```bash
|
| 316 |
pip install \
|
| 317 |
+
"laygen @ https://github.com/creative-graphic-design/design-generators/archive/20095cf1680b865d5890b5fd89367ec1c81d29c3.zip#subdirectory=lib/laygen" \
|
| 318 |
+
"collage-diffusion @ https://github.com/creative-graphic-design/design-generators/archive/20095cf1680b865d5890b5fd89367ec1c81d29c3.zip#subdirectory=models/collage-diffusion"
|
| 319 |
```
|
| 320 |
|
| 321 |
The Hub pipeline loads code from `creative-graphic-design/collage-diffusion` and weights from `sd2-community/stable-diffusion-2-1-base`. Before setting `trust_remote_code=True`, review the pipeline code in the [Collage Diffusion Hub repository](https://huggingface.co/creative-graphic-design/collage-diffusion); `diffusers` executes that code when it loads the custom pipeline.
|