|
1 | | - |
2 | | -## FLUX1.D Controlnet Inpainting |
3 | | - |
| 1 | +--- |
| 2 | +license: other |
| 3 | +license_name: flux-1-dev-non-commercial-license |
| 4 | +license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md |
| 5 | +language: |
| 6 | +- en |
| 7 | +base_model: black-forest-labs/FLUX.1-dev |
| 8 | +library_name: diffusers |
| 9 | +tags: |
| 10 | +- Text-to-Image |
| 11 | +- ControlNet |
| 12 | +- Inpainting |
| 13 | +- FLUX |
| 14 | +- Stable Diffusion |
| 15 | +--- |
4 | 16 | <div style="display: flex; justify-content: center; align-items: center;"> |
5 | 17 | <img src="images/alibaba.png" alt="alibaba" style="width: 20%; height: auto; margin-right: 5%;"> |
6 | 18 | <img src="images/alimama.png" alt="alimama" style="width: 20%; height: auto;"> |
7 | 19 | </div> |
8 | | - |
9 | 20 | This repository provides a Inpainting ControlNet checkpoint for [FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev) model released by researchers from AlimamaCreative Team. |
10 | 21 |
|
11 | | - |
12 | 22 | ## Model Cards |
13 | 23 |
|
14 | 24 | * The model was trained on 12M laion2B and internal source images at resolution 768x768. The inference performs best at this size, with other sizes yielding suboptimal results. |
15 | 25 |
|
16 | | -* The recommended controlnet_conditioning_scale is 0.95. |
| 26 | +* The recommended controlnet_conditioning_scale is 0.9 - 0.95. |
17 | 27 |
|
18 | 28 | * **Please note: This is only the alpha version during the training process. We will release an updated version when we feel ready.** |
19 | 29 |
|
@@ -46,12 +56,12 @@ From left to right: Input image | Masked image | SDXL inpainting | Ours |
46 | 56 |
|
47 | 57 | ``` Shell |
48 | 58 | # install diffusers |
49 | | -pip install -U diffusers |
| 59 | +pip install diffusers==0.30.2 |
50 | 60 | # clone this repo |
51 | | -git clone https://github.com/JPlin/FLUX-Controlnet-Inpainting.git |
52 | | -# run |
53 | | -python main.py -i <input_image> -m <mask_image> -p <prompt> |
| 61 | +git clone https://github.com/alimama-creative/FLUX-Controlnet-Inpainting.git |
| 62 | +# modify the image_path, mask_path, and prompt in main.py. Run: |
| 63 | +python main.py |
54 | 64 | ``` |
55 | 65 |
|
56 | 66 | ## LICENSE |
57 | | -Our weights fall under the [FLUX.1 [dev]](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md) Non-Commercial License. |
| 67 | +Our weights fall under the [FLUX.1 [dev]](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md) Non-Commercial License. |
0 commit comments