Disra commited on
Commit
9a4a979
·
verified ·
1 Parent(s): 1317094

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +116 -0
README.md ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: "black-forest-labs/FLUX.1-dev"
4
+ tags:
5
+ - flux
6
+ - flux-diffusers
7
+ - text-to-image
8
+ - diffusers
9
+ - simpletuner
10
+ - lora
11
+ - template:sd-lora
12
+ inference: true
13
+ widget:
14
+ - text: 'unconditional (blank prompt)'
15
+ parameters:
16
+ negative_prompt: ''''
17
+ output:
18
+ url: ./assets/image_0_0.png
19
+ - text: 'anime style digital art of a girl with long black hair and purple eyes wearing an unbuttoned white shirt that shows off her medium breasts, cleavage, and purple bra. She is also wearing black pleated skirt and is has a hand on her breasts while she looks up at the camera with a seductive pose.'
20
+ parameters:
21
+ negative_prompt: ''''
22
+ output:
23
+ url: ./assets/image_1_0.png
24
+ ---
25
+
26
+ # anime-lora-test-03
27
+
28
+ This is a standard PEFT LoRA derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
29
+
30
+
31
+ The main validation prompt used during training was:
32
+
33
+
34
+
35
+ ```
36
+ anime style digital art of a girl with long black hair and purple eyes wearing an unbuttoned white shirt that shows off her medium breasts, cleavage, and purple bra. She is also wearing black pleated skirt and is has a hand on her breasts while she looks up at the camera with a seductive pose.
37
+ ```
38
+
39
+ ## Validation settings
40
+ - CFG: `3.5`
41
+ - CFG Rescale: `0.0`
42
+ - Steps: `20`
43
+ - Sampler: `None`
44
+ - Seed: `42`
45
+ - Resolution: `1024`
46
+
47
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
48
+
49
+ You can find some example images in the following gallery:
50
+
51
+
52
+ <Gallery />
53
+
54
+ The text encoder **was not** trained.
55
+ You may reuse the base model text encoder for inference.
56
+
57
+
58
+ ## Training settings
59
+
60
+ - Training epochs: 5
61
+ - Training steps: 200
62
+ - Learning rate: 0.0001
63
+ - Effective batch size: 1
64
+ - Micro-batch size: 1
65
+ - Gradient accumulation steps: 1
66
+ - Number of GPUs: 1
67
+ - Prediction type: flow-matching
68
+ - Rescaled betas zero SNR: False
69
+ - Optimizer: adamw_bf16
70
+ - Precision: bf16
71
+ - Quantised: No
72
+ - Xformers: Not used
73
+ - LoRA Rank: 4
74
+ - LoRA Alpha: None
75
+ - LoRA Dropout: 0.1
76
+ - LoRA initialisation style: default
77
+
78
+
79
+ ## Datasets
80
+
81
+ ### anime-test-01
82
+ - Repeats: 0
83
+ - Total number of images: 34
84
+ - Total number of aspect buckets: 1
85
+ - Resolution: 1.048576 megapixels
86
+ - Cropped: True
87
+ - Crop style: center
88
+ - Crop aspect: square
89
+
90
+
91
+ ## Inference
92
+
93
+
94
+ ```python
95
+ import torch
96
+ from diffusers import DiffusionPipeline
97
+
98
+ model_id = 'black-forest-labs/FLUX.1-dev'
99
+ adapter_id = 'Disra/anime-lora-test-03'
100
+ pipeline = DiffusionPipeline.from_pretrained(model_id)
101
+ pipeline.load_lora_weights(adapter_id)
102
+
103
+ prompt = "anime style digital art of a girl with long black hair and purple eyes wearing an unbuttoned white shirt that shows off her medium breasts, cleavage, and purple bra. She is also wearing black pleated skirt and is has a hand on her breasts while she looks up at the camera with a seductive pose."
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=20,
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=1024,
111
+ height=1024,
112
+ guidance_scale=3.5,
113
+ ).images[0]
114
+ image.save("output.png", format="PNG")
115
+ ```
116
+