Update README.md
Browse files
README.md
CHANGED
@@ -33,16 +33,22 @@ This is a LoRA derived from [stabilityai/stable-diffusion-3-medium-diffusers](ht
|
|
33 |
The main validation prompt used during training was:
|
34 |
|
35 |
```
|
36 |
-
a
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
```
|
38 |
|
39 |
## Validation settings
|
40 |
-
- CFG: `
|
41 |
- CFG Rescale: `0.0`
|
42 |
-
- Steps: `
|
43 |
- Sampler: `euler`
|
44 |
-
- Seed: `
|
45 |
-
- Resolution: `
|
46 |
|
47 |
Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
|
48 |
|
@@ -86,38 +92,3 @@ You may reuse the base model text encoder for inference.
|
|
86 |
- Crop style: None
|
87 |
- Crop aspect: None
|
88 |
|
89 |
-
|
90 |
-
## Inference
|
91 |
-
|
92 |
-
|
93 |
-
```python
|
94 |
-
import torch
|
95 |
-
from diffusers import DiffusionPipeline
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
model_id = 'stabilityai/stable-diffusion-3-medium-diffusers'
|
101 |
-
adapter_id = 'sdxl-training'
|
102 |
-
prompt = 'a photo of a naked woman with large breasts'
|
103 |
-
negative_prompt = 'blurry, cropped, ugly'
|
104 |
-
pipeline = DiffusionPipeline.from_pretrained(model_id)\pipeline.load_adapter(adapter_id)
|
105 |
-
pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
|
106 |
-
|
107 |
-
prompt = "a photo of a naked woman with large breasts"
|
108 |
-
negative_prompt = "blurry, cropped, ugly"
|
109 |
-
|
110 |
-
pipeline = DiffusionPipeline.from_pretrained(model_id)
|
111 |
-
pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
|
112 |
-
image = pipeline(
|
113 |
-
prompt=prompt,
|
114 |
-
negative_prompt='blurry, cropped, ugly',
|
115 |
-
num_inference_steps=50,
|
116 |
-
generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
|
117 |
-
width=1152,
|
118 |
-
height=768,
|
119 |
-
guidance_scale=7.5,
|
120 |
-
guidance_rescale=0.0,
|
121 |
-
).images[0]
|
122 |
-
image.save("output.png", format="PNG")
|
123 |
-
```
|
|
|
33 |
The main validation prompt used during training was:
|
34 |
|
35 |
```
|
36 |
+
a naked woman, front view, standing in a room. large breasts, pretty face, pussy. photo, RAW candid cinema, 16mm, color graded portra 400 film, remarkable color, ultra realistic, dry skin, shot with cinematic camera
|
37 |
+
```
|
38 |
+
|
39 |
+
Negative prompt:
|
40 |
+
|
41 |
+
```
|
42 |
+
ugly 3d render, deformed corpse, brushstrokes, painting
|
43 |
```
|
44 |
|
45 |
## Validation settings
|
46 |
+
- CFG: `4.0`
|
47 |
- CFG Rescale: `0.0`
|
48 |
+
- Steps: `40`
|
49 |
- Sampler: `euler`
|
50 |
+
- Seed: `6`
|
51 |
+
- Resolution: `816x1280`
|
52 |
|
53 |
Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
|
54 |
|
|
|
92 |
- Crop style: None
|
93 |
- Crop aspect: None
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|