Upload folder using huggingface_hub
Browse files- config.yaml +66 -0
- kontext_remove.safetensors +3 -0
- optimizer.pt +3 -0
config.yaml
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
job: extension
|
2 |
+
config:
|
3 |
+
name: kontext_remove
|
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/kontext_training/images
|
19 |
+
control_path: datasets/kontext_training/controls
|
20 |
+
caption_ext: txt
|
21 |
+
caption_dropout_rate: 0.05
|
22 |
+
shuffle_tokens: false
|
23 |
+
cache_latents_to_disk: true
|
24 |
+
resolution:
|
25 |
+
- 512
|
26 |
+
- 768
|
27 |
+
- 1024
|
28 |
+
train:
|
29 |
+
batch_size: 1
|
30 |
+
steps: 4000
|
31 |
+
gradient_accumulation_steps: 1
|
32 |
+
train_unet: true
|
33 |
+
train_text_encoder: false
|
34 |
+
gradient_checkpointing: true
|
35 |
+
noise_scheduler: flowmatch
|
36 |
+
optimizer: adamw8bit
|
37 |
+
lr: 0.0001
|
38 |
+
timestep_type: weighted
|
39 |
+
dtype: bf16
|
40 |
+
model:
|
41 |
+
name_or_path: models/FLUX.1-Kontext-dev
|
42 |
+
arch: flux_kontext
|
43 |
+
quantize: true
|
44 |
+
sample:
|
45 |
+
sampler: flowmatch
|
46 |
+
sample_every: 250
|
47 |
+
width: 1024
|
48 |
+
height: 1024
|
49 |
+
prompts:
|
50 |
+
- Remove red SUV with luggage on roof rack. Vast, flat, white salt flat landscape
|
51 |
+
under a clear blue sky with distant mountains on the horizon. --ctrl_img
|
52 |
+
datasets/kontext_training/controls/object_removal_01.png
|
53 |
+
- Remove blurry background. A laptop keyboard is visible at the top of the frame,
|
54 |
+
with a Samsung 1TB NVMe SSD lying on a light brown surface below it. --ctrl_img
|
55 |
+
datasets/kontext_training/controls/object_removal_02.png
|
56 |
+
- Remove snowflake. A window frame is visible on the left and right sides of
|
57 |
+
a dark interior space, with bright light coming from outside the window. --ctrl_img
|
58 |
+
datasets/kontext_training/controls/object_removal_03.png
|
59 |
+
neg: ''
|
60 |
+
seed: 42
|
61 |
+
walk_seed: true
|
62 |
+
guidance_scale: 4
|
63 |
+
sample_steps: 20
|
64 |
+
meta:
|
65 |
+
name: kontext_remove
|
66 |
+
version: '1.0'
|
kontext_remove.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc1454c7eb0090de0e36a9bf76715ff2b2a55681f4c347bde583f081ef7f2770
|
3 |
+
size 171969352
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:35a1cbb34e9530d5ac13938a890dc1386c12a23baaf09badea2e0ace5202ac62
|
3 |
+
size 175676612
|