DamarJati commited on
Commit
3fc1134
1 Parent(s): 1f59cde

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +57 -5
README.md CHANGED
@@ -29,20 +29,20 @@ widget:
29
  library_name: diffusers
30
  ---
31
 
32
- **For best results, use the following command**
33
  + prompt (Trigger Words): ```melaura, girl```
34
  + negative prompts: ```ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, bad anatomy, bad proportions, cloned face, disfigured, out of frame, extra limbs, bad anatomy, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, mutated hands, fused fingers, too many fingers, long neck, text, letters, signature, web address, copyright name, username, error, extra digit, fewer digits, loadscreen, grid, stock image, a stock photo, promo poster, fat, text, logo, brand, watermark, water mark, low quality,```
35
  + scheduler: EulerAncestralDiscreteScheduler (Euler a).
36
  ---
37
- **You are free to:**
38
  + Share - copy and redistribute the material in any medium or format
39
  + Adapt - remix, transform, and build upon the material
40
 
41
- **Under the following terms:**
42
  + Attribution - You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
43
  + NonCommercial - You may not use the material for commercial purposes.
44
  ---
45
- **Examples of prompts used**
46
 
47
  Prompt: melaura, girl, asian woman with long dark hair wearing a white dress, a photorealistic painting by Lü Ji, trending on cg society, photorealism, popular korean makeup, popular south korean makeup, clear makeup
48
 
@@ -73,6 +73,58 @@ Num_Inference_Steps: 50
73
  scheduler type: EulerAncestralDiscreteScheduler
74
  ![Image description](image/images_3.png)
75
 
76
- **Limitation**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
 
78
  This model inherit Stable Diffusion 1.5 [limitation](https://huggingface.co/runwayml/stable-diffusion-v1-5#limitations)
 
29
  library_name: diffusers
30
  ---
31
 
32
+ ## For best results, use the following command
33
  + prompt (Trigger Words): ```melaura, girl```
34
  + negative prompts: ```ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, bad anatomy, bad proportions, cloned face, disfigured, out of frame, extra limbs, bad anatomy, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, mutated hands, fused fingers, too many fingers, long neck, text, letters, signature, web address, copyright name, username, error, extra digit, fewer digits, loadscreen, grid, stock image, a stock photo, promo poster, fat, text, logo, brand, watermark, water mark, low quality,```
35
  + scheduler: EulerAncestralDiscreteScheduler (Euler a).
36
  ---
37
+ ## You are free to:
38
  + Share - copy and redistribute the material in any medium or format
39
  + Adapt - remix, transform, and build upon the material
40
 
41
+ ## Under the following terms:
42
  + Attribution - You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
43
  + NonCommercial - You may not use the material for commercial purposes.
44
  ---
45
+ ## Examples of prompts used
46
 
47
  Prompt: melaura, girl, asian woman with long dark hair wearing a white dress, a photorealistic painting by Lü Ji, trending on cg society, photorealism, popular korean makeup, popular south korean makeup, clear makeup
48
 
 
73
  scheduler type: EulerAncestralDiscreteScheduler
74
  ![Image description](image/images_3.png)
75
 
76
+ ---
77
+
78
+ ## Gradio & Colab
79
+
80
+ We also support a [Gradio](https://github.com/gradio-app/gradio) Web UI and Colab with Diffusers to run **Melaura**:
81
+ [![Open In Spaces](https://camo.githubusercontent.com/00380c35e60d6b04be65d3d94a58332be5cc93779f630bcdfc18ab9a3a7d3388/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f25463025394625413425393725323048756767696e67253230466163652d5370616365732d626c7565)](https://huggingface.co/spaces/Linaqruf/Animagine-XL)
82
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1iRar-VyGGV49U0UEsi0OxFCRC2Hcd2pq?usp=sharing)
83
+
84
+ ## 🧨 Diffusers
85
+
86
+ Before running it, make sure you have the necessary pip libraries installed:
87
+ ```
88
+ pip install -q diffusers transformers omegaconf
89
+ ```
90
+ Running the pipeline (if you don't swap the scheduler, it will run with the default **EulerDiscreteScheduler**. In this example, we're swapping it to **EulerAncestralDiscreteScheduler**:
91
+ ```py
92
+ from diffusers import StableDiffusionPipeline, EulerAncestralDiscreteScheduler
93
+ import torch
94
+ import os
95
+
96
+ pipe = StableDiffusionPipeline.from_pretrained(
97
+ repo_id,
98
+ torch_dtype=torch.float16,
99
+ use_karras_sigmas=True,
100
+ algorithm_type="sde-dpmsolver++"
101
+ )
102
+ pipe.to('cuda')
103
+
104
+ #Safety Checker
105
+ pipe.safety_checker = None
106
+ pipe.requires_safety_checker = False
107
+
108
+ #Scheduler
109
+ pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
110
+
111
+
112
+ Prompt = "melaura, girl, hd, pink lips, detailed, age 16, Off-shoulder top, shiny cheeks"
113
+ Negative_prompt = "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry"
114
+
115
+ image = pipe(
116
+ prompt=Prompt,
117
+ negative_prompt=Negative_prompt,
118
+ width=512,
119
+ height=512,
120
+ guidance_scale=8,
121
+ num_inference_steps=50
122
+ ).images[0]
123
+ image.save("melaura.png")
124
+
125
+ ```
126
+
127
+
128
+ ## Limitation
129
 
130
  This model inherit Stable Diffusion 1.5 [limitation](https://huggingface.co/runwayml/stable-diffusion-v1-5#limitations)