PseudoTerminal X
commited on
Model card auto-generated by SimpleTuner
Browse files
README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: creativeml-openrail-m
|
| 3 |
+
base_model: "stabilityai/stable-diffusion-3-medium-diffusers"
|
| 4 |
+
tags:
|
| 5 |
+
- stable-diffusion
|
| 6 |
+
- stable-diffusion-diffusers
|
| 7 |
+
- text-to-image
|
| 8 |
+
- diffusers
|
| 9 |
+
- lora
|
| 10 |
+
- template:sd-lora
|
| 11 |
+
inference: true
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# terminus-velocity-v2-reddit
|
| 16 |
+
|
| 17 |
+
This is a LoRA derived from [stabilityai/stable-diffusion-3-medium-diffusers](https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers).
|
| 18 |
+
|
| 19 |
+
The main validation prompt used during training was:
|
| 20 |
+
|
| 21 |
+
```
|
| 22 |
+
a naked man is surfing on top of a horse
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
## Validation settings
|
| 26 |
+
- CFG: `5.0`
|
| 27 |
+
- CFG Rescale: `0.2`
|
| 28 |
+
- Steps: `50`
|
| 29 |
+
- Sampler: `euler`
|
| 30 |
+
- Seed: `2`
|
| 31 |
+
- Resolution: `1280x768`
|
| 32 |
+
|
| 33 |
+
Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
<Gallery />
|
| 39 |
+
|
| 40 |
+
The text encoder **was not** trained.
|
| 41 |
+
You may reuse the base model text encoder for inference.
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
## Training settings
|
| 45 |
+
|
| 46 |
+
- Training epochs: 0
|
| 47 |
+
- Training steps: 57
|
| 48 |
+
- Learning rate: 1e-06
|
| 49 |
+
- Effective batch size: 1
|
| 50 |
+
- Micro-batch size: 1
|
| 51 |
+
- Gradient accumulation steps: 1
|
| 52 |
+
- Number of GPUs: 1
|
| 53 |
+
- Prediction type: v_prediction
|
| 54 |
+
- Rescaled betas zero SNR: True
|
| 55 |
+
- Optimizer: AdamW, stochastic bf16
|
| 56 |
+
- Precision: Pure BF16
|
| 57 |
+
- Xformers: Not used
|
| 58 |
+
- LoRA Rank: 16
|
| 59 |
+
- LoRA Alpha: 16
|
| 60 |
+
- LoRA Dropout: 0.1
|
| 61 |
+
- LoRA initialisation style: default
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
## Datasets
|
| 65 |
+
|
| 66 |
+
### celebrities
|
| 67 |
+
- Repeats: 0
|
| 68 |
+
- Total number of images: 1253
|
| 69 |
+
- Total number of aspect buckets: 3
|
| 70 |
+
- Resolution: 1.0 megapixels
|
| 71 |
+
- Cropped: True
|
| 72 |
+
- Crop style: random
|
| 73 |
+
- Crop aspect: random
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
## Inference
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
```python
|
| 80 |
+
None
|
| 81 |
+
|
| 82 |
+
model_id = "terminus-velocity-v2-reddit"
|
| 83 |
+
prompt = "a naked man is surfing on top of a horse"
|
| 84 |
+
negative_prompt = "malformed, disgusting, overexposed, washed-out"
|
| 85 |
+
|
| 86 |
+
pipeline = DiffusionPipeline.from_pretrained(model_id)
|
| 87 |
+
pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
|
| 88 |
+
image = pipeline(
|
| 89 |
+
prompt=prompt,
|
| 90 |
+
negative_prompt='blurry, cropped, ugly',
|
| 91 |
+
num_inference_steps=50,
|
| 92 |
+
generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
|
| 93 |
+
width=1152,
|
| 94 |
+
height=768,
|
| 95 |
+
guidance_scale=5.0,
|
| 96 |
+
guidance_rescale=0.2,
|
| 97 |
+
).images[0]
|
| 98 |
+
image.save(f"output.png", format="PNG")
|
| 99 |
+
```
|
| 100 |
+
|