rdeinla commited on
Commit
c8ab17d
·
verified ·
1 Parent(s): 5226cf9

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +111 -0
README.md ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: "stabilityai/stable-diffusion-3-medium-diffusers"
4
+ tags:
5
+ - sd3
6
+ - sd3-diffusers
7
+ - text-to-image
8
+ - diffusers
9
+ - simpletuner
10
+ - safe-for-work
11
+ - lora
12
+ - template:sd-lora
13
+ - standard
14
+ inference: true
15
+
16
+ ---
17
+
18
+ # test
19
+
20
+ This is a standard PEFT LoRA derived from [stabilityai/stable-diffusion-3-medium-diffusers](https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers).
21
+
22
+
23
+ The main validation prompt used during training was:
24
+
25
+
26
+
27
+ ```
28
+ A pirate ship heading out to sea
29
+ ```
30
+
31
+ ## Validation settings
32
+ - CFG: `7.5`
33
+ - CFG Rescale: `0.0`
34
+ - Steps: `20`
35
+ - Sampler: `None`
36
+ - Seed: `42`
37
+ - Resolution: `512`
38
+
39
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
40
+
41
+
42
+
43
+
44
+ <Gallery />
45
+
46
+ The text encoder **was not** trained.
47
+ You may reuse the base model text encoder for inference.
48
+
49
+
50
+ ## Training settings
51
+
52
+ - Training epochs: 0
53
+ - Training steps: 5
54
+ - Learning rate: 0.00105
55
+ - Max grad norm: 0.01
56
+ - Effective batch size: 8
57
+ - Micro-batch size: 8
58
+ - Gradient accumulation steps: 1
59
+ - Number of GPUs: 1
60
+ - Prediction type: flow-matching
61
+ - Rescaled betas zero SNR: False
62
+ - Optimizer: adamw_bf16
63
+ - Precision: Pure BF16
64
+ - Quantised: Yes: int8-quanto
65
+ - Xformers: Not used
66
+ - LoRA Rank: 256
67
+ - LoRA Alpha: 256.0
68
+ - LoRA Dropout: 0.1
69
+ - LoRA initialisation style: default
70
+
71
+
72
+ ## Datasets
73
+
74
+ ### wikiart_s
75
+ - Repeats: 1
76
+ - Total number of images: 36
77
+ - Total number of aspect buckets: 3
78
+ - Resolution: 1.0 megapixels
79
+ - Cropped: False
80
+ - Crop style: None
81
+ - Crop aspect: None
82
+ - Used for regularisation data: No
83
+
84
+
85
+ ## Inference
86
+
87
+
88
+ ```python
89
+ import torch
90
+ from diffusers import DiffusionPipeline
91
+
92
+ model_id = 'stabilityai/stable-diffusion-3-medium-diffusers'
93
+ adapter_id = 'rdeinla/test'
94
+ pipeline = DiffusionPipeline.from_pretrained(model_id)
95
+ pipeline.load_lora_weights(adapter_id)
96
+
97
+ prompt = "A pirate ship heading out to sea"
98
+ negative_prompt = 'blurry'
99
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
100
+ image = pipeline(
101
+ prompt=prompt,
102
+ negative_prompt=negative_prompt,
103
+ num_inference_steps=20,
104
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
105
+ width=512,
106
+ height=512,
107
+ guidance_scale=7.5,
108
+ ).images[0]
109
+ image.save("output.png", format="PNG")
110
+ ```
111
+