ilkerzgi commited on
Commit
1eeefbe
·
verified ·
1 Parent(s): 80d85d4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -41
README.md CHANGED
@@ -1,74 +1,77 @@
 
1
  ---
2
  tags:
3
  - flux
 
4
  - image-to-image
5
  - lora
6
  - fal
7
  - diffusers
8
  - ilkerzgi
9
  language: en
10
- base_model: black-forest-labs/FLUX.1-Kontext-dev
11
- instance_prompt: Make it metallic with a black background and a 3D perspective
12
  license_name: flux1-dev-non-commercial-license
13
- license_link: https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/main/LICENSE.md
14
  license: other
15
  widget:
16
- - src: images/input3.jpeg
17
- prompt: Make it metallic with a black background and a 3D perspective
18
- output:
19
- url: images/output3.jpeg
20
- - src: images/input2.jpg
21
- prompt: Make it metallic with a black background and a 3D perspective
22
  output:
23
- url: images/output2.jpeg
24
- - src: images/input5.jpg
25
- prompt: Make it metallic with a black background and a 3D perspective
26
  output:
27
- url: images/output5.jpeg
28
- - src: images/input7.jpg
29
- prompt: Make it metallic with a black background and a 3D perspective
30
  output:
31
- url: images/output7.jpeg
32
  ---
33
 
34
- # Metallic Objects Kontext Dev LoRA
35
 
36
  <Gallery />
37
 
38
- 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.
 
 
 
39
 
40
  ## Table of Contents
41
  - [Model Details](#model-details)
42
- - [Uses](#uses)
43
- - [Training](#training)
 
 
44
 
45
  ## Model Details
46
 
47
- **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.
 
 
 
 
 
 
 
 
48
 
49
- * **Trained by:** [ilkerzgi](https://huggingface.co/ilkerzgi)
50
- * **Model Type:** LoRA for Image-to-Image generation
51
- * **Language(s):** English
52
- * **License:** [flux1-dev-non-commercial-license](https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/main/LICENSE.md)
53
- * **Parent Model:** [black-forest-labs/FLUX.1-Kontext-dev](https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev)
54
- * **Resources for more information:**
55
- * [Download the weights](https://huggingface.co/ilkerzgi/metallic-objects-kontext-dev-lora/resolve/main/metallic-objects-kontext-dev-lora.safetensors)
56
- * [Try the model directly on fal.ai](https://fal.ai/models/fal-ai/flux-kontext-lora?fromTraining=fe1a8832-be01-4df6-9b26-5dcbcde83d42)
57
 
58
- ## Uses
 
59
 
60
- #### Direct Use
61
- 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**".
62
 
63
- ## Training
 
 
64
 
65
- #### Training Data
66
- I trained the model on a custom dataset of 20 paired (before and after) images of various objects to learn the "metallic" style transformation.
67
 
68
- #### Training Procedure
69
- I performed the training using the [FLUX Kontext Trainer on fal.ai](https://fal.ai/models/fal-ai/flux-kontext-trainer/playground).
70
- The base model for training was `black-forest-labs/FLUX.1-Kontext-dev`.
71
 
72
- **Hyperparameters:**
73
- * **Learning Rate:** 0.0001
74
- * **Steps:** 1300
 
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
+