Instructions to use Jacklu0831/procreate-diffusion-apple with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Jacklu0831/procreate-diffusion-apple with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Jacklu0831/procreate-diffusion-apple", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
ProCreate checkpoint: Apple
A Stable Diffusion 1.5 UNet fine-tuned for 2,000 steps on the Apple category of FSCG-8 (50 caption-image pairs of Apple product designs). It is one of eight checkpoints released with ProCreate, Don't Reproduce! Propulsive Energy Diffusion for Creative Generation (ECCV 2024).
ProCreate is a sampling method that pushes generated images away from the reference images, so a model fine-tuned on a few examples produces novel samples in the same style instead of replicating its training data.
Paper · Project page · Code · Dataset
What this repository contains
Only the fine-tuned UNet (UNet2DConditionModel, diffusers format). Load it into a Stable Diffusion 1.5 pipeline:
import torch
from diffusers import StableDiffusionPipeline, UNet2DConditionModel
pipe = StableDiffusionPipeline.from_pretrained(
"stable-diffusion-v1-5/stable-diffusion-v1-5", torch_dtype=torch.float16
).to("cuda")
pipe.unet = UNet2DConditionModel.from_pretrained(
"Jacklu0831/procreate-diffusion-apple", torch_dtype=torch.float16
).to("cuda")
image = pipe("an Apple VR headset").images[0]
This samples from the fine-tuned model directly. To sample with ProCreate, use src/inference.py in the code repository, which downloads this checkpoint automatically:
python src/inference.py \
--dataset_dir few-shot-creative-generation-8/apple \
--unet_ckpt_dir Jacklu0831/procreate-diffusion-apple \
--prompt "an Apple VR headset"
License
The weights are a derivative of Stable Diffusion 1.5 and are released under the CreativeML Open RAIL-M license.
Citation
@InProceedings{procreate,
author="Lu, Jack and Teehan, Ryan and Ren, Mengye",
title="ProCreate, Don't Reproduce! Propulsive Energy Diffusion for Creative Generation",
booktitle="Computer Vision -- ECCV 2024",
year="2024",
publisher="Springer Nature Switzerland",
}
- Downloads last month
- 6
Model tree for Jacklu0831/procreate-diffusion-apple
Base model
stable-diffusion-v1-5/stable-diffusion-v1-5