ilkerzgi commited on
Commit
65be1f3
·
verified ·
1 Parent(s): 1eeefbe

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -44
README.md CHANGED
@@ -1,77 +1,75 @@
1
-
2
  ---
3
  tags:
4
  - flux
5
- - inpainting
6
  - image-to-image
7
  - lora
8
  - fal
9
  - diffusers
10
  - ilkerzgi
11
  language: en
12
- base_model: black-forest-labs/FLUX.1-Kontext-dev-inpainting
13
- instance_prompt: place it
14
  license_name: flux1-dev-non-commercial-license
15
- license_link: https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev-inpainting/blob/main/LICENSE.md
16
  license: other
17
  widget:
18
- - src: in1.png
19
- prompt: place it
 
 
 
 
20
  output:
21
- url: out1.png
22
- - src: in2.png
23
- prompt: place it
24
  output:
25
- url: out2.png
26
- - src: in3.png
27
- prompt: place it
28
  output:
29
- url: out3.png
30
  ---
31
 
32
- # Contextual Paste – KontextDev‑Inpainting LoRA
33
 
34
  <Gallery />
35
 
36
- This LoRA fine‑tunes **black‑forest‑labs/FLUX.1‑Kontext‑dev‑inpainting** to **paste** (“place it”) a given asset into a masked region so that it blends **realistically** with the surrounding scene.
37
- **Square (1:1) inputs work best. LoRA scale = 1.0 or 0.9 recommended.**
38
-
39
- ---
40
 
41
  ## Table of Contents
42
  - [Model Details](#model-details)
43
- - [Usage](#usage)
44
- - [Training Summary](#training-summary)
45
-
46
- ---
47
 
48
  ## Model Details
49
 
50
- | Field | Value |
51
- |------------------|-----------------------------------------------------------------------|
52
- | **Parent model** | `black‑forest‑labs/FLUX.1‑Kontext‑dev‑inpainting` |
53
- | **Type** | LoRA for masked *inpainting* |
54
- | **Trigger** | `place it` |
55
- | **Author** | [ilkerzgi](https://huggingface.co/ilkerzgi) |
56
- | **License** | flux1‑dev‑non‑commercial |
57
- | **Weights** | [Download adapter (.safetensors)](https://huggingface.co/ilkerzgi/Kontext-Dev-Inpainting/resolve/main/WVVtJFD90b8SsU6EzeGkO_adapter_model_comfy_converted.safetensors) |
58
- | **Demo** | [fal.ai playground](https://infinite-kanvas.vercel.app/) |
59
 
60
- This adapter makes sure that the input image fragment you want to insert is rendered with consistent lighting, perspective, and texture, matching the target area seamlessly.
 
 
 
 
 
 
 
61
 
62
- ---
63
-
64
 
65
- ### Tips
 
66
 
67
- * **Square crops** (512×512, 768×768) yield the most consistent blend.
68
- * Keep the mask tight around the insertion region.
69
- * Use a two‑stage upscaling workflow for high‑resolution outputs.
70
 
71
- ---
72
-
73
 
74
- This LoRA was trained to copy the masked input fragment and render it in‑context, preserving scene coherence in terms of lighting, shading, and perspective.
 
 
75
 
76
- ---
77
-
 
 
1
+ ````markdown
2
  ---
3
  tags:
4
  - flux
 
5
  - image-to-image
6
  - lora
7
  - fal
8
  - diffusers
9
  - ilkerzgi
10
  language: en
11
+ base_model: black-forest-labs/FLUX.1-Kontext-dev
12
+ instance_prompt: Make it metallic with a black background and a 3D perspective
13
  license_name: flux1-dev-non-commercial-license
14
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/main/LICENSE.md
15
  license: other
16
  widget:
17
+ - src: images/input3.jpeg
18
+ prompt: Make it metallic with a black background and a 3D perspective
19
+ output:
20
+ url: images/output3.jpeg
21
+ - src: images/input2.jpg
22
+ prompt: Make it metallic with a black background and a 3D perspective
23
  output:
24
+ url: images/output2.jpeg
25
+ - src: images/input5.jpg
26
+ prompt: Make it metallic with a black background and a 3D perspective
27
  output:
28
+ url: images/output5.jpeg
29
+ - src: images/input7.jpg
30
+ prompt: Make it metallic with a black background and a 3D perspective
31
  output:
32
+ url: images/output7.jpeg
33
  ---
34
 
35
+ # Metallic Objects Kontext Dev LoRA
36
 
37
  <Gallery />
38
 
39
+ This is a LoRA (Low-Rank Adaptation) model that has been trained to transform input images into a metallic style, featuring a black background and a 3D perspective.
 
 
 
40
 
41
  ## Table of Contents
42
  - [Model Details](#model-details)
43
+ - [Uses](#uses)
44
+ - [Training](#training)
 
 
45
 
46
  ## Model Details
47
 
48
+ **Model Description:** This model is a LoRA fine-tune of `black-forest-labs/FLUX.1-Kontext-dev`. It's designed to be used in an image-to-image pipeline to apply a specific artistic style. When prompted with "Make it metallic with a black background and a 3D perspective", it converts regular images into 3D-looking metallic objects on a dark background.
 
 
 
 
 
 
 
 
49
 
50
+ * **Trained by:** [ilkerzgi](https://huggingface.co/ilkerzgi)
51
+ * **Model Type:** LoRA for Image-to-Image generation
52
+ * **Language(s):** English
53
+ * **License:** [flux1-dev-non-commercial-license](https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/main/LICENSE.md)
54
+ * **Parent Model:** [black-forest-labs/FLUX.1-Kontext-dev](https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev)
55
+ * **Resources for more information:**
56
+ * [Download the weights](https://huggingface.co/ilkerzgi/metallic-objects-kontext-dev-lora/resolve/main/metallic-objects-kontext-dev-lora.safetensors)
57
+ * [Try the model directly on fal.ai](https://fal.ai/models/fal-ai/flux-kontext-lora?fromTraining=fe1a8832-be01-4df6-9b26-5dcbcde83d42)
58
 
59
+ ## Uses
 
60
 
61
+ #### Direct Use
62
+ This model is intended to be used for artistic image generation. You can use it to apply a "metallic object" style to your own images. The model works best when using the trigger phrase: "**Make it metallic with a black background and a 3D perspective**".
63
 
64
+ ## Training
 
 
65
 
66
+ #### Training Data
67
+ I trained the model on a custom dataset of 20 paired (before and after) images of various objects to learn the "metallic" style transformation.
68
 
69
+ #### Training Procedure
70
+ I performed the training using the [FLUX Kontext Trainer on fal.ai](https://fal.ai/models/fal-ai/flux-kontext-trainer/playground).
71
+ The base model for training was `black-forest-labs/FLUX.1-Kontext-dev`.
72
 
73
+ **Hyperparameters:**
74
+ * **Learning Rate:** 0.0001
75
+ * **Steps:** 1300