GrieferPig commited on
Commit
7a69148
1 Parent(s): 48b04e6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +80 -0
README.md CHANGED
@@ -1,3 +1,83 @@
1
  ---
2
  license: bigscience-bloom-rail-1.0
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: bigscience-bloom-rail-1.0
3
+ language:
4
+ - en
5
+ library_name: diffusers
6
+ tags:
7
+ - stable-diffusion
8
+ - text-to-image
9
  ---
10
+
11
+
12
+ # pony-diffusion-g5 - a new generation ~~of waifus~~
13
+
14
+ pony-diffusion-g5 is a latent text-to-image diffusion model that has been conditioned on medium-to-low-quality pony images through fine-tuning.
15
+
16
+ Finetuned for MLP G5 main characters, based on [AstraliteHeart/pony-diffusion](https://huggingface.co/AstraliteHeart/pony-diffusion)
17
+
18
+ <img src="./doc/demo1.png" width=50% height=50%>
19
+ <img src="./doc/demo2.png" width=50% height=50%>
20
+ <img src="./doc/demo3.png" width=50% height=50%>
21
+ <img src="./doc/demo4.png" width=50% height=50%>
22
+ <img src="./doc/demo5.png" width=50% height=50%>
23
+
24
+ ## Dataset criteria
25
+
26
+ All training images from Derpibooru using the search criteria below
27
+
28
+ - General: "g5, safe, solo, score.gte:250, -webm, -animate || g5, suggestive, solo, score.gte:250, -webm, -animate", 856 entries wo/ gifs, 5 epochs
29
+ - Izzy moonbow: "izzy moonbow, safe, solo, score.gte:200, -webm, -animate || izzy moonbow, suggestive, solo, score.gte:200, -webm, -animate", 531 entries wo/ gifs, 3 epochs
30
+ - Sunny starscout: "sunny starscout, safe, solo, score.gte:200, -webm, -animate || sunny starscout, suggestive, solo, score.gte:200, -webm, -animate", 252 entries wo/ gifs, 3 epochs
31
+ - Pipp petals: "pipp petals, safe, solo, score.gte:200, -webm, -animate || pipp petals, suggestive, solo, score.gte:200, -webm, -animate", 218 entries wo/ gifs, 3 epochs
32
+ - Zipp storm: "zipp storm, safe, solo, score.gte:200, -webm, -animate || pipp petals, suggestive, solo, score.gte:200, -webm, -animate", 167 entries wo/ gifs, 3 epochs
33
+ - Hitch trailblzer: "hitch trailblazer, safe, solo, score.gte:200, -webm, -animate || hitch trailblazer, suggestive, solo, score.gte:200, -webm, -animate", 34 entries wo/ gifs (wat), 3 epochs
34
+
35
+ ## Why the model's quality is bad?
36
+
37
+ The amount of G5 pony images within the search criteria is little, so don't really expect the quality to be as high as the original model is
38
+
39
+ ~~_Also bcs im new to ai stuff i don't know how to train datasets correctly if u could help me great thx_~~
40
+
41
+ ## Example code
42
+
43
+ ```python
44
+ from diffusers import StableDiffusionPipeline
45
+ import torch
46
+ from diffusers import DDIMScheduler
47
+
48
+ model_path = "./gen_model_izzy"
49
+ prompt = "(((izzy moonbow))), pony, looking at you, smiling, sitting on beach, cute, portrait, intricate, digital painting, smooth, sharp, focus, depth of field"
50
+ negative= "3d sfm"
51
+ # torch.manual_seed(1145141919810)
52
+
53
+ pipe = StableDiffusionPipeline.from_pretrained(
54
+ model_path,
55
+ torch_dtype=torch.float16,
56
+ scheduler=DDIMScheduler(
57
+ beta_start=0.00085,
58
+ beta_end=0.012,
59
+ beta_schedule="scaled_linear",
60
+ clip_sample=False,
61
+ set_alpha_to_one=True,
62
+ ),
63
+ # safety_checker=None
64
+ )
65
+
66
+ pipe = pipe.to("cuda")
67
+ images = pipe(prompt, width=512, height=512, num_inference_steps=50, num_images_per_prompt=5, negative_prompt=negative).images
68
+ for i, image in enumerate(images):
69
+ image.save(f"test-{i}.png")
70
+
71
+ ```
72
+
73
+ ## Thanks
74
+
75
+ [AstraliteHeart/pony-diffusion](https://huggingface.co/AstraliteHeart/pony-diffusion), for providing a solid start-point to train on
76
+
77
+ This project would not have been possible without the incredible work by the [CompVis Researchers](https://ommer-lab.com/).
78
+
79
+ 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.
80
+
81
+ ---
82
+ license: bigscience-bloom-rail-1.0
83
+ ---