This is
Flux.1-dev
ControlNet for low resolution images developed by Jasper research team.
How to use
This model can be used directly with the
diffusers
library
import torch
from diffusers.utils import load_image
from diffusers import FluxControlNetModel
from diffusers.pipelines import FluxControlNetPipeline
# Load pipeline
controlnet = FluxControlNetModel.from_pretrained(
"jasperai/Flux.1-dev-Controlnet-Upscaler",
torch_dtype=torch.bfloat16
)
pipe = FluxControlNetPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev",
controlnet=controlnet,
torch_dtype=torch.bfloat16
)
pipe.to("cuda")
# Load a control image
control_image = load_image(
"https://huggingface.co/jasperai/Flux.1-dev-Controlnet-Upscaler/resolve/main/examples/input.jpg"
)
w, h = control_image.size
# Upscale x4
control_image = control_image.resize((w * 4, h * 4))
image = pipe(
prompt="",
control_image=control_image,
controlnet_conditioning_scale=0.6,
num_inference_steps=28,
guidance_scale=3.5,
height=control_image.size[1],
width=control_image.size[0]
).images[0]
image
Training
This model was trained with a synthetic complex data degradation scheme taking as input a
real-life
image and artificially degrading it by combining several degradations such as amongst other image noising (Gaussian, Poisson), image blurring and JPEG compression in a similar spirit as [1]
[1] Wang, Xintao, et al. "Real-esrgan: Training real-world blind super-resolution with pure synthetic data." Proceedings of the IEEE/CVF international conference on computer vision. 2021.
Flux.1-dev-Controlnet-Upscaler huggingface.co is an AI model on huggingface.co that provides Flux.1-dev-Controlnet-Upscaler's model effect (), which can be used instantly with this RedbeardNZ Flux.1-dev-Controlnet-Upscaler model. huggingface.co supports a free trial of the Flux.1-dev-Controlnet-Upscaler model, and also provides paid use of the Flux.1-dev-Controlnet-Upscaler. Support call Flux.1-dev-Controlnet-Upscaler model through api, including Node.js, Python, http.
Flux.1-dev-Controlnet-Upscaler huggingface.co is an online trial and call api platform, which integrates Flux.1-dev-Controlnet-Upscaler's modeling effects, including api services, and provides a free online trial of Flux.1-dev-Controlnet-Upscaler, you can try Flux.1-dev-Controlnet-Upscaler online for free by clicking the link below.
RedbeardNZ Flux.1-dev-Controlnet-Upscaler online free url in huggingface.co:
Flux.1-dev-Controlnet-Upscaler is an open source model from GitHub that offers a free installation service, and any user can find Flux.1-dev-Controlnet-Upscaler on GitHub to install. At the same time, huggingface.co provides the effect of Flux.1-dev-Controlnet-Upscaler install, users can directly use Flux.1-dev-Controlnet-Upscaler installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Flux.1-dev-Controlnet-Upscaler install url in huggingface.co: