ling003 commited on
Commit
b85c6f2
·
verified ·
1 Parent(s): e7e80a4

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +152 -0
README.md ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: "sd3/unknown-model"
4
+ tags:
5
+ - sd3
6
+ - sd3-diffusers
7
+ - text-to-image
8
+ - diffusers
9
+ - simpletuner
10
+ - not-for-all-audiences
11
+ - lora
12
+ - template:sd-lora
13
+ - lycoris
14
+ inference: true
15
+ widget:
16
+ - text: 'unconditional (blank prompt)'
17
+ parameters:
18
+ negative_prompt: 'blurry, cropped, ugly'
19
+ output:
20
+ url: ./assets/image_0_0.png
21
+ - text: 'unconditional (blank prompt)'
22
+ parameters:
23
+ negative_prompt: 'blurry, cropped, ugly'
24
+ output:
25
+ url: ./assets/image_1_1.png
26
+ - text: 'Create an image of a fabric design featuring a classic camouflage pattern in various shades of green, brown, and black, suitable for military clothing and outdoor gear.'
27
+ parameters:
28
+ negative_prompt: 'blurry, cropped, ugly'
29
+ output:
30
+ url: ./assets/image_2_0.png
31
+ - text: 'Create an image of a fabric design featuring a classic camouflage pattern in various shades of green, brown, and black, suitable for military clothing and outdoor gear.'
32
+ parameters:
33
+ negative_prompt: 'blurry, cropped, ugly'
34
+ output:
35
+ url: ./assets/image_3_1.png
36
+ ---
37
+
38
+ # simpletuner-lora
39
+
40
+ This is a LyCORIS adapter derived from [sd3/unknown-model](https://huggingface.co/sd3/unknown-model).
41
+
42
+
43
+ The main validation prompt used during training was:
44
+
45
+
46
+
47
+ ```
48
+ Create an image of a fabric design featuring a classic camouflage pattern in various shades of green, brown, and black, suitable for military clothing and outdoor gear.
49
+ ```
50
+
51
+ ## Validation settings
52
+ - CFG: `3.0`
53
+ - CFG Rescale: `0.0`
54
+ - Steps: `20`
55
+ - Sampler: `None`
56
+ - Seed: `42`
57
+ - Resolutions: `1024x1024,1280x768`
58
+
59
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
60
+
61
+ You can find some example images in the following gallery:
62
+
63
+
64
+ <Gallery />
65
+
66
+ The text encoder **was not** trained.
67
+ You may reuse the base model text encoder for inference.
68
+
69
+
70
+ ## Training settings
71
+
72
+ - Training epochs: 1
73
+ - Training steps: 500
74
+ - Learning rate: 0.0001
75
+ - Max grad norm: 0.01
76
+ - Effective batch size: 1
77
+ - Micro-batch size: 1
78
+ - Gradient accumulation steps: 1
79
+ - Number of GPUs: 1
80
+ - Prediction type: flow-matching
81
+ - Rescaled betas zero SNR: False
82
+ - Optimizer: adamw_bf16
83
+ - Precision: Pure BF16
84
+ - Quantised: No
85
+ - Xformers: Not used
86
+ - LyCORIS Config:
87
+ ```json
88
+ {
89
+ "algo": "lokr",
90
+ "multiplier": 1.0,
91
+ "linear_dim": 10000,
92
+ "linear_alpha": 1,
93
+ "factor": 16,
94
+ "apply_preset": {
95
+ "target_module": [
96
+ "Attention",
97
+ "FeedForward"
98
+ ],
99
+ "module_algo_map": {
100
+ "Attention": {
101
+ "factor": 16
102
+ },
103
+ "FeedForward": {
104
+ "factor": 8
105
+ }
106
+ }
107
+ }
108
+ }
109
+ ```
110
+
111
+ ## Datasets
112
+
113
+ ### GPTwebd3
114
+ - Repeats: 0
115
+ - Total number of images: 409
116
+ - Total number of aspect buckets: 1
117
+ - Resolution: 1.0 megapixels
118
+ - Cropped: True
119
+ - Crop style: center
120
+ - Crop aspect: square
121
+ - Used for regularisation data: No
122
+
123
+
124
+ ## Inference
125
+
126
+
127
+ ```python
128
+ import torch
129
+ from diffusers import DiffusionPipeline
130
+ from lycoris import create_lycoris_from_weights
131
+
132
+ model_id = '/root/autodl-tmp/stable-diffusion-3-medium-diffusers'
133
+ adapter_id = 'pytorch_lora_weights.safetensors' # you will have to download this manually
134
+ lora_scale = 1.0
135
+ wrapper, _ = create_lycoris_from_weights(lora_scale, adapter_id, pipeline.transformer)
136
+ wrapper.merge_to()
137
+
138
+ prompt = "Create an image of a fabric design featuring a classic camouflage pattern in various shades of green, brown, and black, suitable for military clothing and outdoor gear."
139
+ negative_prompt = 'blurry, cropped, ugly'
140
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
141
+ image = pipeline(
142
+ prompt=prompt,
143
+ negative_prompt=negative_prompt,
144
+ num_inference_steps=20,
145
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
146
+ width=1024,
147
+ height=1024,
148
+ guidance_scale=3.0,
149
+ ).images[0]
150
+ image.save("output.png", format="PNG")
151
+ ```
152
+