windsingai commited on
Commit
b823d11
·
verified ·
1 Parent(s): 53bd50c

Upload train_config.yaml

Browse files
kontext_object_removal/train_config.yaml ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ job: extension
2
+ config:
3
+ name: kontext_object_removal_lora
4
+ process:
5
+ - type: sd_trainer
6
+ training_folder: output
7
+ performance_log_every: 100
8
+ device: cuda:0
9
+ network:
10
+ type: lora
11
+ linear: 16
12
+ linear_alpha: 16
13
+ save:
14
+ dtype: float16
15
+ save_every: 200
16
+ max_step_saves_to_keep: 5
17
+ push_to_hub: false
18
+ datasets:
19
+ - folder_path: /root/ai-toolkit/data/images
20
+ control_path: /root/ai-toolkit/data/controls
21
+ caption_ext: txt
22
+ caption_dropout_rate: 0.02
23
+ shuffle_tokens: false
24
+ cache_latents_to_disk: true
25
+ resolution:
26
+ - 512
27
+ - 768
28
+ train:
29
+ batch_size: 1
30
+ steps: 2000
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: 8.0e-05
38
+ timestep_type: weighted
39
+ dtype: bf16
40
+ ema_config:
41
+ use_ema: true
42
+ ema_decay: 0.995
43
+ model:
44
+ name_or_path: /chenyudata/ComfyUI/models/diffusion_models/flux1-kontext-dev.safetensors
45
+ extras_name_or_path: /chenyudata/Other/flux.1-dev
46
+ arch: flux_kontext
47
+ quantize: true
48
+ sample:
49
+ sampler: flowmatch
50
+ sample_every: 200
51
+ width: 1024
52
+ height: 1024
53
+ prompts:
54
+ - Remove the red car from the scene --ctrl_img data/controls/object_removal_01.png
55
+ - Remove the laptop from the image --ctrl_img data/controls/object_removal_02.png
56
+ - Remove the bicycle from the street --ctrl_img data/controls/object_removal_03.png
57
+ - Remove the yellow vehicle --ctrl_img data/controls/object_removal_04.png
58
+ - Remove the person from the photo --ctrl_img data/controls/object_removal_05.png
59
+ - Clean up the background --ctrl_img data/controls/object_removal_06.png
60
+ neg: ''
61
+ seed: 42
62
+ walk_seed: true
63
+ guidance_scale: 4
64
+ sample_steps: 20
65
+ meta:
66
+ name: kontext_object_removal_lora
67
+ version: '1.0'
68
+ description: Kontext LoRA trained for object removal tasks using the object_removal_alpha_kontext
69
+ dataset
70
+ dataset_info:
71
+ source: https://huggingface.co/datasets/lrzjason/object_removal_alpha_kontext
72
+ samples: 20
73
+ task: Object Removal