Upload 3 files
Browse files- README (1).md +53 -0
- config (2).yaml +63 -0
- jaydeepsur.safetensors +3 -0
README (1).md
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- text-to-image
|
4 |
+
- flux
|
5 |
+
- lora
|
6 |
+
- diffusers
|
7 |
+
- template:sd-lora
|
8 |
+
- ai-toolkit
|
9 |
+
widget:
|
10 |
+
- text: 'model in a bustling cafe '
|
11 |
+
output:
|
12 |
+
url: samples/1737823593736__000003000_0.jpg
|
13 |
+
- text: model in dubai
|
14 |
+
output:
|
15 |
+
url: samples/1737823613727__000003000_1.jpg
|
16 |
+
- text: 'model in Japan '
|
17 |
+
output:
|
18 |
+
url: samples/1737823633720__000003000_2.jpg
|
19 |
+
base_model: black-forest-labs/FLUX.1-dev
|
20 |
+
instance_prompt: rohanz
|
21 |
+
license: other
|
22 |
+
license_name: flux-1-dev-non-commercial-license
|
23 |
+
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
24 |
+
---
|
25 |
+
|
26 |
+
# rohanz
|
27 |
+
Model trained with [AI Toolkit by Ostris](https://github.com/ostris/ai-toolkit)
|
28 |
+
<Gallery />
|
29 |
+
|
30 |
+
## Trigger words
|
31 |
+
|
32 |
+
You should use `rohanz` to trigger the image generation.
|
33 |
+
|
34 |
+
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, etc.
|
35 |
+
|
36 |
+
Weights for this model are available in Safetensors format.
|
37 |
+
|
38 |
+
[Download](/None/tree/main) them in the Files & versions tab.
|
39 |
+
|
40 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
41 |
+
|
42 |
+
```py
|
43 |
+
from diffusers import AutoPipelineForText2Image
|
44 |
+
import torch
|
45 |
+
|
46 |
+
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
|
47 |
+
pipeline.load_lora_weights('None', weight_name='rohanz')
|
48 |
+
image = pipeline('model in a bustling cafe ').images[0]
|
49 |
+
image.save("my_image.png")
|
50 |
+
```
|
51 |
+
|
52 |
+
For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
|
53 |
+
|
config (2).yaml
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
job: extension
|
2 |
+
config:
|
3 |
+
name: jaydeepsur
|
4 |
+
process:
|
5 |
+
- type: sd_trainer
|
6 |
+
training_folder: output
|
7 |
+
device: cuda:0
|
8 |
+
network:
|
9 |
+
type: lora
|
10 |
+
linear: 16
|
11 |
+
linear_alpha: 16
|
12 |
+
save:
|
13 |
+
dtype: float16
|
14 |
+
save_every: 250
|
15 |
+
max_step_saves_to_keep: 4
|
16 |
+
push_to_hub: false
|
17 |
+
datasets:
|
18 |
+
- folder_path: datasets/d49cc6c4-0116-4d72-a9c6-4357b2bfce2e
|
19 |
+
caption_ext: txt
|
20 |
+
caption_dropout_rate: 0.05
|
21 |
+
shuffle_tokens: false
|
22 |
+
cache_latents_to_disk: true
|
23 |
+
resolution:
|
24 |
+
- 512
|
25 |
+
- 768
|
26 |
+
- 1024
|
27 |
+
train:
|
28 |
+
batch_size: 1
|
29 |
+
steps: 2000
|
30 |
+
gradient_accumulation_steps: 1
|
31 |
+
train_unet: true
|
32 |
+
train_text_encoder: false
|
33 |
+
gradient_checkpointing: true
|
34 |
+
noise_scheduler: flowmatch
|
35 |
+
optimizer: adamw8bit
|
36 |
+
lr: 0.0004
|
37 |
+
ema_config:
|
38 |
+
use_ema: true
|
39 |
+
ema_decay: 0.99
|
40 |
+
dtype: bf16
|
41 |
+
skip_first_sample: true
|
42 |
+
disable_sampling: false
|
43 |
+
model:
|
44 |
+
name_or_path: black-forest-labs/FLUX.1-dev
|
45 |
+
is_flux: true
|
46 |
+
quantize: true
|
47 |
+
low_vram: false
|
48 |
+
sample:
|
49 |
+
sampler: flowmatch
|
50 |
+
sample_every: 2000
|
51 |
+
width: 1024
|
52 |
+
height: 1024
|
53 |
+
prompts:
|
54 |
+
- A person in a bustling cafe jaydeepsur
|
55 |
+
neg: ''
|
56 |
+
seed: 42
|
57 |
+
walk_seed: true
|
58 |
+
guidance_scale: 4
|
59 |
+
sample_steps: 28
|
60 |
+
trigger_word: jaydeepsur
|
61 |
+
meta:
|
62 |
+
name: jaydeepsur
|
63 |
+
version: '1.0'
|
jaydeepsur.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d0891ae166ade940c146968561d28d45d5b0bc6daa1f6b6ae1444b516626e2bc
|
3 |
+
size 171969408
|