HARRY07979 commited on
Commit
887d8f1
·
verified ·
1 Parent(s): c2b9bb8

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: creativeml-openrail-m
3
+ datasets:
4
+ - sasha/prof_images_blip__SG161222-Realistic_Vision_V1.4
5
+ language:
6
+ - en
7
+ library_name: diffusers
8
+ tags:
9
+ - art
10
+ ---
11
+ # realistic-diffusion v1: The small diffusion model for realistic images
12
+ ![image](./grid-img.jpg)
13
+
14
+ **HyHorX/realistic-diffusion-v1** is the diffusers model trained to create realistic images, faster than **SG161222/Realistic_Vision_V6.0_B1_noVAE** and **runwayml/stable-diffusion-v1** on most test, sometimes faster than **segmind/tiny-sd**.
15
+
16
+ # Comparison
17
+
18
+ These are comparion for this model ran on T4 GPU, compared with segmind/tiny-sd, runwayml/stable-diffusion-v1-5 and SG161222/Realistic_Vision_V6.0_B1_noVAE:
19
+
20
+ ![image](./compare.png)
21
+
22
+ # Training info
23
+
24
+ Learning rate: 5e-5 (0.00005) <br>
25
+ Batch size: 8 <br>
26
+ Number of steps: 1000 <br>
27
+ Training methond: Knowledge Distillation <br>
28
+ Trained on: x1 T4 GPU <br>
29
+
30
+
31
+ ### License
32
+
33
+ This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage.
34
+ The CreativeML OpenRAIL License specifies:
35
+
36
+ 1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content
37
+ 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
38
+ 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)
39
+ [Please read the full license here](https://huggingface.co/spaces/CompVis/stable-diffusion-license)
40
+
41
+ # Example coe:
42
+ ```python
43
+ import torch
44
+ from diffusers import StableDiffusionPipeline
45
+ user = "A candid portrait of an elderly person with deep wrinkles, silver hair captured in natural sunlight, wearing a highly detailed coarse wool sweater, dust motes dancing in the light, soft natural backlight, realistic shadows, authentic expression, shot on 35mm film, grainy texture, masterpiece, ultra-realistic"
46
+ model_id="HyHorX/realistic-diffusion-v1"
47
+ neg_prompt="makeup, young, smooth skin, doll, plastic, fake, bad proportions, blurry, high contrast, artificial lighting."
48
+ pipe=StableDiffusionPipeline.from_pretrained(model_id,torch_dtype=torch.float16)
49
+ pipe=pipe.to("cuda")
50
+ prompt=user
51
+ image=pipe(prompt,negative_prompt=neg_prompt).images[0]
52
+ image
53
+ ```
unet/config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
- "_diffusers_version": "0.35.2",
4
- "_name_or_path": "HyHorX/realistic-diffusion-v1",
5
  "act_fn": "silu",
6
  "addition_embed_type": null,
7
  "addition_embed_type_num_heads": 64,
 
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
+ "_diffusers_version": "0.36.0",
4
+ "_name_or_path": "segmind/tiny-sd",
5
  "act_fn": "silu",
6
  "addition_embed_type": null,
7
  "addition_embed_type_num_heads": 64,
unet/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4fedc9b7d014935d0436cddf021eb6cf865f3a7a22c7171efb5e5fe62050421a
3
  size 1293583616
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:914e0bbdbe3ca2f297e4cdd0bd0056b273cb2bab6003353741f96b8a3ab6be94
3
  size 1293583616