Text-to-Image
Diffusers
Safetensors
stable-diffusion
procreate
Jacklu0831 commited on
Commit
40d98a7
·
verified ·
1 Parent(s): cd59846

Name folders after the FSCG-8 categories; add the model card

Browse files
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: diffusers
3
+ license: creativeml-openrail-m
4
+ base_model: stable-diffusion-v1-5/stable-diffusion-v1-5
5
+ pipeline_tag: text-to-image
6
+ tags:
7
+ - stable-diffusion
8
+ - text-to-image
9
+ - procreate
10
+ datasets:
11
+ - Jacklu0831/few-shot-creative-generation-8
12
+ ---
13
+
14
+ # ProCreate checkpoints
15
+
16
+ Eight Stable Diffusion 1.5 UNets, each fine-tuned for 2,000 steps on one category of [FSCG-8](https://huggingface.co/datasets/Jacklu0831/few-shot-creative-generation-8) (50 caption-image pairs per category), released with **ProCreate, Don't Reproduce! Propulsive Energy Diffusion for Creative Generation** (ECCV 2024).
17
+
18
+ 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.
19
+
20
+ [Paper](https://arxiv.org/abs/2408.02226) · [Project page](https://agenticlearning.ai/procreate/) · [Code](https://github.com/agentic-learning-ai-lab/procreate-diffusion) · [Dataset](https://huggingface.co/datasets/Jacklu0831/few-shot-creative-generation-8)
21
+
22
+ ## Checkpoints
23
+
24
+ One folder per FSCG-8 category, each holding a fine-tuned UNet (`UNet2DConditionModel`, diffusers format):
25
+
26
+ | Folder | Fine-tuned on | Sample prompt |
27
+ | --- | --- | --- |
28
+ | `amedeo_modigliani` | Amedeo Modigliani paintings | a Amedeo Modigliani painting of a boy in a suit and hat |
29
+ | `apple` | Apple product designs | an Apple VR headset |
30
+ | `burberry` | Burberry designs | a Burberry stuffed bear |
31
+ | `frank_gehry` | Frank Gehry architecture | a twisting tall apartment building, designed by Frank Gehry |
32
+ | `nouns` | Nouns characters | a mountain Nouns character |
33
+ | `one_piece` | One Piece characters | a One Piece man in a purple robe |
34
+ | `pokemon` | Pokemon | a jellyfish Pokemon |
35
+ | `rococo` | Rococo style art and furniture | a Rococo style bed |
36
+
37
+ ## Usage
38
+
39
+ Load a category's UNet into a Stable Diffusion 1.5 pipeline:
40
+
41
+ ```python
42
+ import torch
43
+ from diffusers import StableDiffusionPipeline, UNet2DConditionModel
44
+
45
+ pipe = StableDiffusionPipeline.from_pretrained(
46
+ "stable-diffusion-v1-5/stable-diffusion-v1-5", torch_dtype=torch.float16
47
+ ).to("cuda")
48
+ pipe.unet = UNet2DConditionModel.from_pretrained(
49
+ "Jacklu0831/procreate-diffusion", subfolder="apple", torch_dtype=torch.float16
50
+ ).to("cuda")
51
+ image = pipe("an Apple VR headset").images[0]
52
+ ```
53
+
54
+ This samples from the fine-tuned model directly. To sample with ProCreate, use `src/inference.py` in the [code repository](https://github.com/agentic-learning-ai-lab/procreate-diffusion), which downloads the checkpoint automatically:
55
+
56
+ ```bash
57
+ python src/inference.py \
58
+ --dataset_dir few-shot-creative-generation-8/apple \
59
+ --unet_ckpt_dir Jacklu0831/procreate-diffusion \
60
+ --unet_subfolder apple \
61
+ --prompt "an Apple VR headset"
62
+ ```
63
+
64
+ ## License
65
+
66
+ The weights are a derivative of Stable Diffusion 1.5 and are released under the [CreativeML Open RAIL-M license](https://huggingface.co/spaces/CompVis/stable-diffusion-license).
67
+
68
+ ## Citation
69
+
70
+ ```bibtex
71
+ @inproceedings{lu2024procreate,
72
+ title = {ProCreate, Don't Reproduce! Propulsive Energy Diffusion for Creative Generation},
73
+ author = {Lu, Jack and Teehan, Ryan and Ren, Mengye},
74
+ booktitle = {European Conference on Computer Vision (ECCV)},
75
+ year = {2024}
76
+ }
77
+ ```
{amedeo-modigliani → amedeo_modigliani}/config.json RENAMED
File without changes
{amedeo-modigliani → amedeo_modigliani}/diffusion_pytorch_model.safetensors RENAMED
File without changes
{frank-gehry → frank_gehry}/config.json RENAMED
File without changes
{frank-gehry → frank_gehry}/diffusion_pytorch_model.safetensors RENAMED
File without changes
{one-piece → one_piece}/config.json RENAMED
File without changes
{one-piece → one_piece}/diffusion_pytorch_model.safetensors RENAMED
File without changes