File size: 5,275 Bytes
08c9978
dbfb379
0fdbff9
 
 
 
 
 
93819d7
 
 
10ac521
 
 
 
 
 
 
 
 
 
 
 
f0cf37f
7d075e7
 
10ac521
7d075e7
10ac521
ed5ad2d
 
3fc1134
ed5ad2d
 
 
 
969fbc9
 
 
3fc1134
ed5ad2d
 
 
3fc1134
ed5ad2d
 
 
3fc1134
ed5ad2d
61aff30
134a292
ed5ad2d
134a292
61aff30
134a292
ed5ad2d
460542c
61aff30
 
 
134a292
61aff30
134a292
61aff30
134a292
61aff30
460542c
ed5ad2d
 
 
134a292
ed5ad2d
134a292
61aff30
134a292
ed5ad2d
1f59cde
 
3fc1134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74718b6
 
3fc1134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1f59cde
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
license: openrail++
pipeline_tag: text-to-image
tags:
- stable-diffusion
- text-to-image
- diffusers
- DiffusionPipeline
inference:
  parameter:
    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, 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,
widget:
- text: melaura, girl, hd, pink lips, detailed, age 16, Off-shoulder top
  example_title: Off-shoulder top
- text: melaura, girl, hd, shiny cheeks
  example_title: shiny cheeks
library_name: diffusers
---

## For best results, use the following command
+ prompt (Trigger Words): ```melaura, girl```
+ 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,```
+ scheduler: EulerAncestralDiscreteScheduler (Euler a).
---

## License: CreativeML Open RAIL++-M License

## You are free to:
+ Share - copy and redistribute the material in any medium or format
+ Adapt - remix, transform, and build upon the material

## Under the following terms:
+ 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.
+ NonCommercial - You may not use the material for commercial purposes.
---
## Examples of prompts used

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

Guidance_Scale: 7.5

Num_Inference_Steps: 50

scheduler type: EulerAncestralDiscreteScheduler
![Image description](image/images_1.png)


Prompt: melaura, girl, a woman with a pearl necklace and pearl necklace, a photorealistic painting by Kim Deuk-sin, featured on cg society, photorealism, portrait of female korean idol, popular korean makeup, popular south korean makeup, shiny cheeks

Guidance_Scale: 7.5

Num_Inference_Steps: 50

scheduler type: EulerAncestralDiscreteScheduler
![Image description](image/images_2.png)


Prompt: melaura, girl,

Guidance_Scale: 7.5

Num_Inference_Steps: 50

scheduler type: EulerAncestralDiscreteScheduler
![Image description](image/images_3.png)

---

## Gradio & Colab

We also support a [Gradio](https://github.com/gradio-app/gradio) Web UI and Colab with Diffusers to run **Melaura**:
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1iRar-VyGGV49U0UEsi0OxFCRC2Hcd2pq?usp=sharing)

## 🧨 Diffusers

Before running it, make sure you have the necessary pip libraries installed:
```
pip install -q diffusers transformers omegaconf
```
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**:
```py
from diffusers import StableDiffusionPipeline, EulerAncestralDiscreteScheduler
import torch
import os

repo_id = "DamarJati/melaura-v1"

pipe = StableDiffusionPipeline.from_pretrained(
    repo_id,
    torch_dtype=torch.float16,
    use_karras_sigmas=True,
    algorithm_type="sde-dpmsolver++"
    )
pipe.to('cuda')

#Safety Checker
pipe.safety_checker = None
pipe.requires_safety_checker = False

#Scheduler
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)


Prompt = "melaura, girl, hd, pink lips, detailed, age 16, Off-shoulder top, shiny cheeks"
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"

image = pipe(
    prompt=Prompt, 
    negative_prompt=Negative_prompt, 
    width=512,
    height=512,
    guidance_scale=8,
    num_inference_steps=50
    ).images[0]
image.save("melaura.png")

```


## Limitation

This model inherit Stable Diffusion 1.5 [limitation](https://huggingface.co/runwayml/stable-diffusion-v1-5#limitations)