kelseye commited on
Commit
d08a914
·
verified ·
1 Parent(s): 92241da

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +14 -12
README.md CHANGED
@@ -1,27 +1,28 @@
1
  ---
2
  license: apache-2.0
3
  ---
4
- # 高分辨率修复 - Kontext 图像编辑 LoRA
5
 
6
- ## 模型介绍
7
 
8
- LoRA 模型是基于 [Kontext](https://www.modelscope.cn/models/black-forest-labs/FLUX.1-Kontext-dev) 模型和 [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio) 训练的 LoRA 模型,使用本模型后,可输入指令 `Improve the clarity.` 提高图像的清晰度。
9
 
10
- ## 模型效果
11
 
12
- ||样例 1|样例 2|样例 3|
 
 
13
  |-|-|-|-|
14
- |原图|![](./assets/image_0.jpg)|![](./assets/image_6.jpg)|![](./assets/image_14.jpg)|
15
- |生成图|![](./assets/image_0_fix.jpg)|![](./assets/image_6_fix.jpg)|![](./assets/image_14_fix.jpg)|
16
 
17
- ||样例 4|样例 5|样例 6 (是的,可以处理正常图片)|
18
  |-|-|-|-|
19
- |原图|![](./assets/image_1.jpg)|![](./assets/image_3.jpg)|![](./assets/image_2.jpg)|
20
- |生成图|![](./assets/image_1_fix.jpg)|![](./assets/image_3_fix.jpg)|![](./assets/image_2_fix.jpg)|
21
 
22
- ## 使用说明
23
 
24
- 本模型基于框架 [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio/tree/main/examples/flux) 训练,请先安装
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|![](./assets/image_0.jpg)|![](./assets/image_6.jpg)|![](./assets/image_14.jpg)|
16
+ |Generated|![](./assets/image_0_fix.jpg)|![](./assets/image_6_fix.jpg)|![](./assets/image_14_fix.jpg)|
17
 
18
+ ||Example 4|Example 5|Example 6 (Yes, it can handle normal images)|
19
  |-|-|-|-|
20
+ |Original|![](./assets/image_1.jpg)|![](./assets/image_3.jpg)|![](./assets/image_2.jpg)|
21
+ |Generated|![](./assets/image_1_fix.jpg)|![](./assets/image_3_fix.jpg)|![](./assets/image_2_fix.jpg)|
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(