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.
Licence
This model falls under the Flux.1-dev model licence.
Description
FAQ
Comments (5)
Anyone has a comfy workflow for this?
@iuliastarcean536 thank you!
Can this work with Forge?
This, combined with 4xUltraSharpV2, is the best open source superresolution tool that can run on 8GB of VRAM (for SFW images at least) IMHO. I haven't tried every option, but I have tried quite a few. I would recommend Area Composition Conditioning (see https://comfyanonymous.github.io/ComfyUI_examples/area_composition/ ) with control strength varying between 0.3 and 0.7 to fix selected areas that are not reconstructed well enough (usually hands and faces). Strength 0.7 occasionally produces ugly hands & faces, strength 0.3 strays too far from the input image, but Area Composition can combine the benefits of both.
Details
Files
jasperaiFlux1Dev_v10.safetensors
Mirrors
jasperaiFlux1Dev_v10.safetensors
controlnetfluxCnflux_jasperaiUpscale.safetensors
Flux.1-dev-Controlnet-Upscaler.safetensors
controlnetfluxCnflux_jasperaiUpscale.safetensors
diffusion_pytorch_model.safetensors
diffusion_pytorch_model.safetensors
diffusion_pytorch_model.safetensors
jasperaiFlux.1-dev-Controlnet-Upscaler.safetensors
diffusion_pytorch_model.safetensors
diffusion_pytorch_model.safetensors
flux1-dev-jasperai-Controlnet-Upscaler.safetensors
Flux.1-dev-Controlnet-Upscaler-JasperAl.safetensors
Flux-dev-jasperai-Upscaler.safetensors
Flux.1-dev-Controlnet-Upscaler-JasperAI.safetensors
Jasper-Flux.1-dev-Controlnet-Upscaler.safetensors
diffusion_pytorch_model.safetensors
Flux.1-dev-Controlnet-Upscaler-JasperAl.safetensors
Flux.1-dev-Controlnet-Upscaler.safetensors
flux.1-dev-controlnet-upscaler.safetensors
diffusion_pytorch_model.safetensors
Flux.1-dev-Controlnet-Upscaler.safetensors
