starsfriday commited on
Commit
8c21ca6
·
verified ·
1 Parent(s): 562ee0b

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,12 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ [[:space:]]teaser1.png filter=lfs diff=lfs merge=lfs -text
37
+ [[:space:]]teaser2.png filter=lfs diff=lfs merge=lfs -text
38
+ [[:space:]]teaser3.png filter=lfs diff=lfs merge=lfs -text
39
+ results/[[:space:]]teaser1.png filter=lfs diff=lfs merge=lfs -text
40
+ results/[[:space:]]teaser2.png filter=lfs diff=lfs merge=lfs -text
41
+ results/[[:space:]]teaser3.png filter=lfs diff=lfs merge=lfs -text
42
+ results/1.png filter=lfs diff=lfs merge=lfs -text
43
+ results/2.png filter=lfs diff=lfs merge=lfs -text
44
+ results/3.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ base_model:
6
+ - black-forest-labs/FLUX.1-Kontext-dev
7
+ tags:
8
+ - image-generation
9
+ - flux
10
+ - diffusion-single-file
11
+ pipeline_tag: image-to-image
12
+ library_name: diffusers
13
+ widget:
14
+ - text: Remove this woman from the scene
15
+ output:
16
+ url: results/1.png
17
+ - text: Remove this child and bicycle from the scene
18
+ output:
19
+ url: results/2.png
20
+ - text: Remove the apples under the kitten's body
21
+ output:
22
+ url: results/3.png
23
+ ---
24
+ # starsfriday Kontext Dev LoRA
25
+
26
+ <Gallery />
27
+
28
+ ## Model Card for Model ID
29
+
30
+ <!-- Provide a quick summary of what the model is/does. -->
31
+
32
+ This is a model for background removal, trained on ```black-forest-labs/FLUX.1-Kontext-dev```, and is suitable for background removal tasks of e-commerce images, character images, and object images.For use in ```ComfyUI```.
33
+
34
+ ## Model description
35
+
36
+
37
+ ## Trigger phrase
38
+
39
+ ```Remove xxx from the scene```
40
+
41
+
42
+ ## Download model
43
+
44
+ Weights for this model are available in Safetensors format.
45
+
46
+ [Download](https://huggingface.co/starsfriday/Kontext-Remover-General)
47
+
48
+ ## Training at Chongqing Valiant Cat
49
+
50
+ This model was trained by the AI Laboratory of Chongqing Valiant Cat Technology Co., LTD(```https://vvicat.com/```).Business cooperation is welcome
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
results/ teaser1.png ADDED

Git LFS Details

  • SHA256: b2c131737953f3ec3b2f2827fed3eec2c49c668fd520210da27e4f6e69922923
  • Pointer size: 132 Bytes
  • Size of remote file: 7.98 MB
results/ teaser2.png ADDED

Git LFS Details

  • SHA256: 7d63e8ffff7bca9f77e8a466e7495320480849702ec99ce42b9ee0bda9a10f88
  • Pointer size: 133 Bytes
  • Size of remote file: 38.9 MB
results/ teaser3.png ADDED

Git LFS Details

  • SHA256: 3066049befbfaecfe5f262c69549812a65b3e9ebdd9dec4b0fbf27d464f56da4
  • Pointer size: 132 Bytes
  • Size of remote file: 4.33 MB
results/1.png ADDED

Git LFS Details

  • SHA256: b2c131737953f3ec3b2f2827fed3eec2c49c668fd520210da27e4f6e69922923
  • Pointer size: 132 Bytes
  • Size of remote file: 7.98 MB
results/2.png ADDED

Git LFS Details

  • SHA256: 7d63e8ffff7bca9f77e8a466e7495320480849702ec99ce42b9ee0bda9a10f88
  • Pointer size: 133 Bytes
  • Size of remote file: 38.9 MB
results/3.png ADDED

Git LFS Details

  • SHA256: 3066049befbfaecfe5f262c69549812a65b3e9ebdd9dec4b0fbf27d464f56da4
  • Pointer size: 132 Bytes
  • Size of remote file: 4.33 MB