---
title: Flux.1-dev-Controlnet-Upscaler
canonical_url: "https://www.modelscope.cn/models/jasperai/Flux.1-dev-Controlnet-Upscaler"
md_url: "https://www.modelscope.cn/models/jasperai/Flux.1-dev-Controlnet-Upscaler.md"
repository: jasperai/Flux.1-dev-Controlnet-Upscaler
last_updated: 2025-03-22
license: other
pipeline_tag: image-to-image
tasks:
  - image-to-image
base_model:
  - black-forest-labs/FLUX.1-dev
base_model_relation: finetune
parameters: 1.8B
tensor_type:
  - BF16
library_name:
  - pytorch
  - safetensors
  - diffusers
frameworks:
  - pytorch
downloads: 4295
stars: 13
tags:
  - ControlNet
  - super-resolution
  - upscaler
---

# Flux.1-dev-Controlnet-Upscaler

> Flux.1-dev-Controlnet-Upscaler - jasperai 在 ModelScope 开源的模型。⚡ Flux.1-dev: Upscaler ControlNet ⚡

jasperai/Flux.1-dev-Controlnet-Upscaler 是 ModelScope 魔搭社区上的 1.8B 参数image-to-image模型，采用 other 许可，基于 black-forest-labs/FLUX.1-dev 构建。

- **Repository**: jasperai/Flux.1-dev-Controlnet-Upscaler
- **License**: other
- **Tasks**: image-to-image
- **Parameters**: 1.8B
- **Base model**: black-forest-labs/FLUX.1-dev
- **Tags**: ControlNet, super-resolution, upscaler
- **Downloads**: 4295
- **Stars**: 13
- **Last updated**: 2025-03-22

Source: https://www.modelscope.cn/models/jasperai/Flux.1-dev-Controlnet-Upscaler

---

# ⚡ Flux.1-dev: Upscaler ControlNet ⚡

This is [Flux.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev) ControlNet for low resolution images developed by Jasper research team.

<p align="center">
   <img style="width:700px;" src="examples/showcase.jpg">
</p>

# How to use
This model can be used directly with the `diffusers` library

```python
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
```

<p align="center">
   <img style="width:500px;" src="examples/output.jpg">
</p>


# 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](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md).
