Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,27 +1,28 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
-
# 高分辨率修复 - Kontext 图像编辑 LoRA
|
| 5 |
|
| 6 |
-
#
|
| 7 |
|
| 8 |
-
|
| 9 |
|
| 10 |
-
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
| 13 |
|-|-|-|-|
|
| 14 |
-
|
|
| 15 |
-
|
|
| 16 |
|
| 17 |
-
||
|
| 18 |
|-|-|-|-|
|
| 19 |
-
|
|
| 20 |
-
|
|
| 21 |
|
| 22 |
-
##
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
```
|
| 27 |
git clone https://github.com/modelscope/DiffSynth-Studio.git
|
|
@@ -47,6 +48,7 @@ pipe = FluxImagePipeline.from_pretrained(
|
|
| 47 |
],
|
| 48 |
)
|
| 49 |
pipe.load_lora(pipe.dit, "models/DiffSynth-Studio/FLUX.1-Kontext-dev-lora-highresfix/model.safetensors", alpha=1)
|
|
|
|
| 50 |
|
| 51 |
image = Image.open("your_image.jpg")
|
| 52 |
image = pipe(
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
|
|
|
| 4 |
|
| 5 |
+
# High-Resolution Fix - Kontext Image Editing LoRA
|
| 6 |
|
| 7 |
+
## Model Introduction
|
| 8 |
|
| 9 |
+
This LoRA model is trained based on the [Kontext](https://www.modelscope.cn/models/black-forest-labs/FLUX.1-Kontext-dev) model and [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio). After using this model, you can input the instruction `Improve the clarity.` to enhance the image clarity.
|
| 10 |
|
| 11 |
+
## Model Results
|
| 12 |
+
|
| 13 |
+
||Example 1|Example 2|Example 3|
|
| 14 |
|-|-|-|-|
|
| 15 |
+
|Original||||
|
| 16 |
+
|Generated||||
|
| 17 |
|
| 18 |
+
||Example 4|Example 5|Example 6 (Yes, it can handle normal images)|
|
| 19 |
|-|-|-|-|
|
| 20 |
+
|Original||||
|
| 21 |
+
|Generated||||
|
| 22 |
|
| 23 |
+
## Usage Instructions
|
| 24 |
|
| 25 |
+
This model is trained using the [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio/tree/main/examples/flux) framework. Please install it first:
|
| 26 |
|
| 27 |
```
|
| 28 |
git clone https://github.com/modelscope/DiffSynth-Studio.git
|
|
|
|
| 48 |
],
|
| 49 |
)
|
| 50 |
pipe.load_lora(pipe.dit, "models/DiffSynth-Studio/FLUX.1-Kontext-dev-lora-highresfix/model.safetensors", alpha=1)
|
| 51 |
+
```
|
| 52 |
|
| 53 |
image = Image.open("your_image.jpg")
|
| 54 |
image = pipe(
|