AstraliteHeart
commited on
Commit
•
194efa5
1
Parent(s):
7177c8c
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
tags:
|
5 |
+
- stable-diffusion
|
6 |
+
- text-to-image
|
7 |
+
license: bigscience-bloom-rail-1.0
|
8 |
+
inference: false
|
9 |
+
thumbnail: "https://cdn.discordapp.com/attachments/1020199895694589953/1020200601780494386/000001.553325548.png"
|
10 |
+
---
|
11 |
+
|
12 |
+
** WIP **
|
13 |
+
** THIS IS A PLACEHOLDER, RELEASE ON FEB21 **
|
14 |
+
|
15 |
+
# pony-diffusion-v3 - "kept you waiting huh" edition
|
16 |
+
|
17 |
+
pony-diffusion is a latent text-to-image diffusion model that has been conditioned on high-quality pony and furry SFW and NSFW images through fine-tuning.
|
18 |
+
|
19 |
+
WARNING: Compared to v1 of this model, v2 is much more capable of producing NSFW content so it's recommended to use 'safe' tag in prompt in combination with negative prompt for image features you may want to suppress. v2 model also has a slight 3d bias so negative prompts like '3d' or 'sfm' should be used to better match v1 outputs.
|
20 |
+
|
21 |
+
With special thanks to [Waifu-Diffusion](https://huggingface.co/hakurei/waifu-diffusion) for providing finetuning expertise and [Novel AI](https://novelai.net/) for providing necessary compute.
|
22 |
+
|
23 |
+
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1mSharzQFPD4mIUxNwBG7LCLAzGUS8Bmy?usp=sharing)
|
24 |
+
|
25 |
+
[![Join Discord Server to try next generation models](https://discordapp.com/api/guilds/670866322619498507/widget.png?style=banner2)](https://discord.gg/pYsdjMfu3q)
|
26 |
+
|
27 |
+
<img src=https://cdn.discordapp.com/attachments/704107851421057114/1035464229001646110/image0.png width=50% height=50%>
|
28 |
+
<img src=https://cdn.discordapp.com/attachments/704107851421057114/1035450288145965086/00053-4009799064-Fluttershy_wearing_a_hoodie_cute_detailed_high_res_4k_trending_on_art_station_art_by_greg.png width=50% height=50%>
|
29 |
+
<img src=https://cdn.discordapp.com/attachments/704107851421057114/1035466996097232956/upscaled_safe_pumpkin_orange_body_spots_on_bod-1.webp width=50% height=50%>
|
30 |
+
|
31 |
+
|
32 |
+
[Original PyTorch Model Download Link](https://mega.nz/file/Va0Q0B4L#QAkbI2v0CnPkjMkK9IIJb2RZTegooQ8s6EpSm1S4CDk)
|
33 |
+
|
34 |
+
[Real-ESRGAN Model finetuned on pony faces](https://mega.nz/folder/cPMlxBqT#aPKYrEfgA_lpPexr0UlQ6w)
|
35 |
+
|
36 |
+
## Model Description
|
37 |
+
|
38 |
+
The model originally used for fine-tuning is an early finetuned checkpoint of [waifu-diffusion](https://huggingface.co/hakurei/waifu-diffusion) on top of [Stable Diffusion V1-4](https://huggingface.co/CompVis/stable-diffusion-v1-4), which is a latent image diffusion model trained on [LAION2B-en](https://huggingface.co/datasets/laion/laion2B-en).
|
39 |
+
|
40 |
+
This particular checkpoint has been fine-tuned with a learning rate of 5.0e-6 for 4 epochs on approximately 450k pony and furry text-image pairs (using tags from derpibooru and e621) which all have score greater than `250`.
|
41 |
+
|
42 |
+
## License
|
43 |
+
|
44 |
+
This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage.
|
45 |
+
The CreativeML OpenRAIL License specifies:
|
46 |
+
|
47 |
+
1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content
|
48 |
+
2. The authors claims no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license
|
49 |
+
3. You may re-distribute the weights and use the model commercially and/or as a service. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully)
|
50 |
+
[Please read the full license here](https://huggingface.co/spaces/CompVis/stable-diffusion-license)
|
51 |
+
|
52 |
+
## Downstream Uses
|
53 |
+
|
54 |
+
This model can be used for entertainment purposes and as a generative art assistant.
|
55 |
+
|
56 |
+
## Example Code
|
57 |
+
|
58 |
+
```python
|
59 |
+
import torch
|
60 |
+
from torch import autocast
|
61 |
+
from diffusers import StableDiffusionPipeline, DDIMScheduler
|
62 |
+
model_id = "AstraliteHeart/pony-diffusion-v2"
|
63 |
+
device = "cuda"
|
64 |
+
pipe = StableDiffusionPipeline.from_pretrained(
|
65 |
+
model_id,
|
66 |
+
torch_dtype=torch.float16,
|
67 |
+
revision="fp16",
|
68 |
+
scheduler=DDIMScheduler(
|
69 |
+
beta_start=0.00085,
|
70 |
+
beta_end=0.012,
|
71 |
+
beta_schedule="scaled_linear",
|
72 |
+
clip_sample=False,
|
73 |
+
set_alpha_to_one=False,
|
74 |
+
),
|
75 |
+
)
|
76 |
+
pipe = pipe.to(device)
|
77 |
+
prompt = "pinkie pie anthro portrait wedding dress veil intricate highly detailed digital painting artstation concept art smooth sharp focus illustration Unreal Engine 5 8K"
|
78 |
+
with autocast("cuda"):
|
79 |
+
image = pipe(prompt, guidance_scale=7.5)["sample"][0]
|
80 |
+
|
81 |
+
image.save("cute_poner.png")
|
82 |
+
```
|
83 |
+
|
84 |
+
## Team Members and Acknowledgements
|
85 |
+
|
86 |
+
This project would not have been possible without the incredible work by the [CompVis Researchers](https://ommer-lab.com/).
|
87 |
+
|
88 |
+
- [Waifu-Diffusion for helping with finetuning and providing starting checkpoint](https://huggingface.co/hakurei/waifu-diffusion)
|
89 |
+
- [Novel AI for providing compute](https://novelai.net/)
|
90 |
+
|
91 |
+
In order to reach us, you can join our [Discord server](https://discord.gg/WG78ZbSB).
|