InstantX / FLUX.1-dev-Controlnet-Union

huggingface.co
Total runs: 40.4K
24-hour runs: 0
7-day runs: 3.5K
30-day runs: 19.3K
Model's Last Updated: August 26 2024

Introduction of FLUX.1-dev-Controlnet-Union

Model Details of FLUX.1-dev-Controlnet-Union

FLUX.1-dev Controlnet

Diffusers version

until the next Diffusers pypi release, please install Diffusers from source and use this PR to be able to use. TODO: change when new version.

Checkpoint

The training of union controlnet requires a significant amount of computational power. The current release is only an alpha version checkpoint that has not been fully trained. The beta version is in the training process. We have conducted ablation studies that have demonstrated the validity of the code. The open-source release of the alpha version is solely to facilitate the rapid growth of the open-source community and the Flux ecosystem; it is common to encounter bad cases (please accept my apologies). It is worth noting that we have found that even a fully trained Union model may not perform as well as specialized models, such as pose control. However, as training progresses, the performance of the Union model will continue to approach that of specialized models.

Control Mode
Control Mode Description Current Model Validity
0 canny 🟢high
1 tile 🟢high
2 depth 🟢high
3 blur 🟢high
4 pose 🟢high
5 gray 🔴low
6 lq 🟢high

Demo

import torch
from diffusers.utils import load_image
from diffusers.pipelines.flux.pipeline_flux_controlnet import FluxControlNetPipeline
from diffusers.models.controlnet_flux import FluxControlNetModel

# load
base_model = 'black-forest-labs/FLUX.1-dev'
controlnet_model = 'InstantX/FLUX.1-dev-Controlnet-Union-alpha'
controlnet = FluxControlNetModel.from_pretrained(controlnet_model, torch_dtype=torch.bfloat16)
pipe = FluxControlNetPipeline.from_pretrained(base_model, controlnet=controlnet, torch_dtype=torch.bfloat16)
pipe.to("cuda")

# image cfg
width, height = 1024, 1024
controlnet_conditioning_scale = 0.5
seed = 6666

# canny
control_image = load_image("https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union-alpha/resolve/main/images/canny.jpg")
prompt = "A girl in city, 25 years old, cool, futuristic."
control_mode = 0

# tile
control_image = load_image("https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union-alpha/resolve/main/images/tile.jpg")
prompt = "A girl, 25 years old."
control_mode = 1

# depth
control_image = load_image("https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union-alpha/resolve/main/images/depth.jpg")
prompt = "A girl in city, 25 years old, cool, futuristic."
control_mode = 2

# blur
control_image = load_image("https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union-alpha/resolve/main/images/blur.jpg")
prompt = "A girl, 25 years old."
control_mode = 3

# pose
control_image = load_image("https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union-alpha/resolve/main/images/pose.jpg")
prompt = "A girl in city, 25 years old, cool, futuristic."
control_mode = 4

# gray
control_image = load_image("https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union-alpha/resolve/main/images/gray.jpg")
prompt = "A girl, 25 years old."
control_mode = 5

# low quality
control_image = load_image("https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union-alpha/resolve/main/images/lq.jpg")
prompt = "A girl in city"
control_mode = 6

# go go go
image = pipe(
    prompt, 
    control_image=control_image,
    control_mode=control_mode,
    width=width,
    height=height,
    controlnet_conditioning_scale=controlnet_conditioning_scale,
    num_inference_steps=28, 
    guidance_scale=3.5,
    generator=torch.manual_seed(seed),
).images[0]
image.save("image.jpg")

Acknowledgements

Thank you, zzzzzero , for pointing out the bug in the model.

Runs of InstantX FLUX.1-dev-Controlnet-Union on huggingface.co

40.4K
Total runs
0
24-hour runs
2.6K
3-day runs
3.5K
7-day runs
19.3K
30-day runs

More Information About FLUX.1-dev-Controlnet-Union huggingface.co Model

More FLUX.1-dev-Controlnet-Union license Visit here:

https://choosealicense.com/licenses/flux-1-dev-non-commercial-license

FLUX.1-dev-Controlnet-Union huggingface.co

FLUX.1-dev-Controlnet-Union huggingface.co is an AI model on huggingface.co that provides FLUX.1-dev-Controlnet-Union's model effect (), which can be used instantly with this InstantX FLUX.1-dev-Controlnet-Union model. huggingface.co supports a free trial of the FLUX.1-dev-Controlnet-Union model, and also provides paid use of the FLUX.1-dev-Controlnet-Union. Support call FLUX.1-dev-Controlnet-Union model through api, including Node.js, Python, http.

FLUX.1-dev-Controlnet-Union huggingface.co Url

https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union

InstantX FLUX.1-dev-Controlnet-Union online free

FLUX.1-dev-Controlnet-Union huggingface.co is an online trial and call api platform, which integrates FLUX.1-dev-Controlnet-Union's modeling effects, including api services, and provides a free online trial of FLUX.1-dev-Controlnet-Union, you can try FLUX.1-dev-Controlnet-Union online for free by clicking the link below.

InstantX FLUX.1-dev-Controlnet-Union online free url in huggingface.co:

https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union

FLUX.1-dev-Controlnet-Union install

FLUX.1-dev-Controlnet-Union is an open source model from GitHub that offers a free installation service, and any user can find FLUX.1-dev-Controlnet-Union on GitHub to install. At the same time, huggingface.co provides the effect of FLUX.1-dev-Controlnet-Union install, users can directly use FLUX.1-dev-Controlnet-Union installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

FLUX.1-dev-Controlnet-Union install url in huggingface.co:

https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Union

Url of FLUX.1-dev-Controlnet-Union

FLUX.1-dev-Controlnet-Union huggingface.co Url

Provider of FLUX.1-dev-Controlnet-Union huggingface.co

InstantX
ORGANIZATIONS

Other API from InstantX

huggingface.co

Total runs: 57.4K
Run Growth: -1.5K
Growth Rate: -2.69%
Updated:January 22 2024
huggingface.co

Total runs: 376
Run Growth: -67
Growth Rate: -17.82%
Updated:September 18 2024
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:November 07 2024