Mujeeb603 commited on
Commit
c85e044
·
verified ·
1 Parent(s): 2b14553

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +19 -22
README.md CHANGED
@@ -1,9 +1,9 @@
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
  - simpletuner
@@ -16,7 +16,7 @@ widget:
16
  negative_prompt: 'blurry, cropped, ugly, 3d, colorful'
17
  output:
18
  url: ./assets/image_0_0.png
19
- - text: 'geometric diagram of a right-angle triangle with base 3cm and height 4cm'
20
  parameters:
21
  negative_prompt: 'blurry, cropped, ugly, 3d, colorful'
22
  output:
@@ -25,8 +25,7 @@ widget:
25
 
26
  # lora-training
27
 
28
- This is a LoRA derived from [stabilityai/stable-diffusion-3-medium-diffusers](https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers).
29
-
30
 
31
 
32
  The main validation prompt used during training was:
@@ -34,13 +33,13 @@ The main validation prompt used during training was:
34
 
35
 
36
  ```
37
- geometric diagram of a right-angle triangle with base 3cm and height 4cm
38
  ```
39
 
40
  ## Validation settings
41
- - CFG: `3.0`
42
  - CFG Rescale: `0.0`
43
- - Steps: `30`
44
  - Sampler: `None`
45
  - Seed: `42`
46
  - Resolution: `512`
@@ -58,9 +57,9 @@ You may reuse the base model text encoder for inference.
58
 
59
  ## Training settings
60
 
61
- - Training epochs: 13
62
- - Training steps: 5000
63
- - Learning rate: 8e-05
64
  - Effective batch size: 1
65
  - Micro-batch size: 1
66
  - Gradient accumulation steps: 1
@@ -69,19 +68,19 @@ You may reuse the base model text encoder for inference.
69
  - Rescaled betas zero SNR: False
70
  - Optimizer: adamw_bf16
71
  - Precision: bf16
72
- - Quantised: No
73
  - Xformers: Not used
74
  - LoRA Rank: 16
75
  - LoRA Alpha: None
76
  - LoRA Dropout: 0.1
77
  - LoRA initialisation style: default
78
-
79
 
80
  ## Datasets
81
 
82
  ### right-triangles
83
  - Repeats: 0
84
- - Total number of images: 380
85
  - Total number of aspect buckets: 1
86
  - Resolution: 512 px
87
  - Cropped: True
@@ -96,23 +95,21 @@ You may reuse the base model text encoder for inference.
96
  import torch
97
  from diffusers import DiffusionPipeline
98
 
99
- model_id = 'stabilityai/stable-diffusion-3-medium-diffusers'
100
  adapter_id = 'Mujeeb603/lora-training'
101
  pipeline = DiffusionPipeline.from_pretrained(model_id)
102
  pipeline.load_lora_weights(adapter_id)
103
 
104
- prompt = "geometric diagram of a right-angle triangle with base 3cm and height 4cm"
105
- negative_prompt = 'blurry, cropped, ugly, 3d, colorful'
106
 
107
  pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
108
  image = pipeline(
109
  prompt=prompt,
110
- negative_prompt=negative_prompt,
111
- num_inference_steps=30,
112
  generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
113
  width=512,
114
  height=512,
115
- guidance_scale=3.0,
116
  ).images[0]
117
  image.save("output.png", format="PNG")
118
  ```
 
1
  ---
2
+ license: other
3
+ base_model: "black-forest-labs/FLUX.1-schnell"
4
  tags:
5
+ - flux
6
+ - flux-diffusers
7
  - text-to-image
8
  - diffusers
9
  - simpletuner
 
16
  negative_prompt: 'blurry, cropped, ugly, 3d, colorful'
17
  output:
18
  url: ./assets/image_0_0.png
19
+ - text: 'A simple, clean line drawing of a right-angled triangle. The right angle is at the bottom left corner. The base is labeled as ''6 cm'' and the height is labeled as ''4 cm''. The drawing is set against a plain white background.'
20
  parameters:
21
  negative_prompt: 'blurry, cropped, ugly, 3d, colorful'
22
  output:
 
25
 
26
  # lora-training
27
 
28
+ This is a standard PEFT LoRA derived from [black-forest-labs/FLUX.1-schnell](https://huggingface.co/black-forest-labs/FLUX.1-schnell).
 
29
 
30
 
31
  The main validation prompt used during training was:
 
33
 
34
 
35
  ```
36
+ A simple, clean line drawing of a right-angled triangle. The right angle is at the bottom left corner. The base is labeled as '6 cm' and the height is labeled as '4 cm'. The drawing is set against a plain white background.
37
  ```
38
 
39
  ## Validation settings
40
+ - CFG: `3.5`
41
  - CFG Rescale: `0.0`
42
+ - Steps: `24`
43
  - Sampler: `None`
44
  - Seed: `42`
45
  - Resolution: `512`
 
57
 
58
  ## Training settings
59
 
60
+ - Training epochs: 0
61
+ - Training steps: 100
62
+ - Learning rate: 0.0008
63
  - Effective batch size: 1
64
  - Micro-batch size: 1
65
  - Gradient accumulation steps: 1
 
68
  - Rescaled betas zero SNR: False
69
  - Optimizer: adamw_bf16
70
  - Precision: bf16
71
+ - Quantised: Yes: int8-quanto
72
  - Xformers: Not used
73
  - LoRA Rank: 16
74
  - LoRA Alpha: None
75
  - LoRA Dropout: 0.1
76
  - LoRA initialisation style: default
77
+
78
 
79
  ## Datasets
80
 
81
  ### right-triangles
82
  - Repeats: 0
83
+ - Total number of images: 348
84
  - Total number of aspect buckets: 1
85
  - Resolution: 512 px
86
  - Cropped: True
 
95
  import torch
96
  from diffusers import DiffusionPipeline
97
 
98
+ model_id = 'black-forest-labs/FLUX.1-schnell'
99
  adapter_id = 'Mujeeb603/lora-training'
100
  pipeline = DiffusionPipeline.from_pretrained(model_id)
101
  pipeline.load_lora_weights(adapter_id)
102
 
103
+ prompt = "A simple, clean line drawing of a right-angled triangle. The right angle is at the bottom left corner. The base is labeled as '6 cm' and the height is labeled as '4 cm'. The drawing is set against a plain white background."
 
104
 
105
  pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
106
  image = pipeline(
107
  prompt=prompt,
108
+ num_inference_steps=24,
 
109
  generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
110
  width=512,
111
  height=512,
112
+ guidance_scale=3.5,
113
  ).images[0]
114
  image.save("output.png", format="PNG")
115
  ```