briaai / BRIA-2.3-ControlNet-BG-Gen

huggingface.co
Total runs: 1
24-hour runs: 0
7-day runs: 1
30-day runs: -6
Model's Last Updated: July 06 2025
text-to-image

Introduction of BRIA-2.3-ControlNet-BG-Gen

Model Details of BRIA-2.3-ControlNet-BG-Gen

BRIA-2.3-ControlNet-Background-Generation, Model Card

BRIA 2.3 ControlNet-Background Generation, trained on the foundation of BRIA 2.3 Text-to-Image , enables the generation of high-quality images guided by a textual prompt and the extracted background mask estimation from an input image. This allows for the creation of different background variations of an image, all sharing the same foreground.

BRIA 2.3 was trained from scratch exclusively on licensed data from our esteemed data partners. Therefore, they are safe for commercial use and provide full legal liability coverage for copyright and privacy infringement, as well as harmful content mitigation. That is, our dataset does not contain copyrighted materials, such as fictional characters, logos, trademarks, public figures, harmful content, or privacy-infringing content.

examples

Model Description
  • Developed by: BRIA AI

  • Model type: ControlNet for Latent diffusion

  • License: bria-2.3

  • Model Description: ControlNet Background-Generation for BRIA 2.3 Text-to-Image model. The model generates images guided by text and the background mask.

  • Resources for more information: BRIA AI

Get Access

BRIA 2.3 ControlNet-Background Generation requires access to BRIA 2.3 Text-to-Image. For more information, click here .

Usage

Installation

pip install -qr https://huggingface.co/briaai/BRIA-2.3-ControlNet-BG-Gen/resolve/main/requirements.txt
huggingface-cli download briaai/BRIA-2.3-ControlNet-BG-Gen --include replace_bg/* --local-dir . --quiet
import torch
from diffusers import (
    AutoencoderKL,
    EulerAncestralDiscreteScheduler,
)
from diffusers.utils import load_image
from replace_bg.model.pipeline_controlnet_sd_xl import StableDiffusionXLControlNetPipeline
from replace_bg.model.controlnet import ControlNetModel
from replace_bg.utilities import resize_image, remove_bg_from_image, paste_fg_over_image, get_control_image_tensor
controlnet = ControlNetModel.from_pretrained("briaai/BRIA-2.3-ControlNet-BG-Gen", torch_dtype=torch.float16) 
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
pipe = StableDiffusionXLControlNetPipeline.from_pretrained("briaai/BRIA-2.3", controlnet=controlnet, torch_dtype=torch.float16, vae=vae).to('cuda:0')
pipe.scheduler = EulerAncestralDiscreteScheduler(
    beta_start=0.00085,
    beta_end=0.012,
    beta_schedule="scaled_linear",
    num_train_timesteps=1000,
    steps_offset=1
)

image_path = "https://farm5.staticflickr.com/4007/4322154488_997e69e4cf_z.jpg"
image = load_image(image_path)
image = resize_image(image)
mask = remove_bg_from_image(image_path)
control_tensor = get_control_image_tensor(pipe.vae, image, mask)

prompt = "in a zoo"
negative_prompt = "Logo,Watermark,Text,Ugly,Bad proportions,Bad quality,Out of frame,Mutation"
generator = torch.Generator(device="cuda:0").manual_seed(0)

gen_img = pipe(
    negative_prompt=negative_prompt, 
    prompt=prompt,     
    controlnet_conditioning_scale=1.0, 
    num_inference_steps=50,
    image = control_tensor,
    generator=generator
).images[0]

result_image = paste_fg_over_image(gen_img, image, mask)

Runs of briaai BRIA-2.3-ControlNet-BG-Gen on huggingface.co

1
Total runs
0
24-hour runs
1
3-day runs
1
7-day runs
-6
30-day runs

More Information About BRIA-2.3-ControlNet-BG-Gen huggingface.co Model

More BRIA-2.3-ControlNet-BG-Gen license Visit here:

https://choosealicense.com/licenses/bria-2.3

BRIA-2.3-ControlNet-BG-Gen huggingface.co

BRIA-2.3-ControlNet-BG-Gen huggingface.co is an AI model on huggingface.co that provides BRIA-2.3-ControlNet-BG-Gen's model effect (), which can be used instantly with this briaai BRIA-2.3-ControlNet-BG-Gen model. huggingface.co supports a free trial of the BRIA-2.3-ControlNet-BG-Gen model, and also provides paid use of the BRIA-2.3-ControlNet-BG-Gen. Support call BRIA-2.3-ControlNet-BG-Gen model through api, including Node.js, Python, http.

BRIA-2.3-ControlNet-BG-Gen huggingface.co Url

https://huggingface.co/briaai/BRIA-2.3-ControlNet-BG-Gen

briaai BRIA-2.3-ControlNet-BG-Gen online free

BRIA-2.3-ControlNet-BG-Gen huggingface.co is an online trial and call api platform, which integrates BRIA-2.3-ControlNet-BG-Gen's modeling effects, including api services, and provides a free online trial of BRIA-2.3-ControlNet-BG-Gen, you can try BRIA-2.3-ControlNet-BG-Gen online for free by clicking the link below.

briaai BRIA-2.3-ControlNet-BG-Gen online free url in huggingface.co:

https://huggingface.co/briaai/BRIA-2.3-ControlNet-BG-Gen

BRIA-2.3-ControlNet-BG-Gen install

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

BRIA-2.3-ControlNet-BG-Gen install url in huggingface.co:

https://huggingface.co/briaai/BRIA-2.3-ControlNet-BG-Gen

Url of BRIA-2.3-ControlNet-BG-Gen

BRIA-2.3-ControlNet-BG-Gen huggingface.co Url

Provider of BRIA-2.3-ControlNet-BG-Gen huggingface.co

briaai
ORGANIZATIONS

Other API from briaai

huggingface.co

Total runs: 392.5K
Run Growth: -254.9K
Growth Rate: -64.94%
Updated:April 06 2026
huggingface.co

Total runs: 263.1K
Run Growth: -108.0K
Growth Rate: -41.03%
Updated:July 06 2025
huggingface.co

Total runs: 3.2K
Run Growth: -399
Growth Rate: -11.00%
Updated:October 29 2025
huggingface.co

Total runs: 777
Run Growth: 135
Growth Rate: 14.06%
Updated:July 05 2026
huggingface.co

Total runs: 629
Run Growth: -312
Growth Rate: -44.32%
Updated:September 09 2026
huggingface.co

Total runs: 538
Run Growth: -515
Growth Rate: -97.17%
Updated:August 18 2026
huggingface.co

Total runs: 301
Run Growth: 618
Growth Rate: 82.40%
Updated:January 30 2026
huggingface.co

Total runs: 235
Run Growth: 0
Growth Rate: 0.00%
Updated:May 12 2024
huggingface.co

Total runs: 211
Run Growth: 126
Growth Rate: 59.72%
Updated:September 05 2026
huggingface.co

Total runs: 135
Run Growth: 85
Growth Rate: 62.96%
Updated:September 01 2025
huggingface.co

Total runs: 131
Run Growth: 0
Growth Rate: 0.00%
Updated:August 04 2024
huggingface.co

Total runs: 104
Run Growth: 39
Growth Rate: 37.50%
Updated:October 16 2025
huggingface.co

Total runs: 67
Run Growth: -9
Growth Rate: -13.24%
Updated:January 15 2026
huggingface.co

Total runs: 46
Run Growth: 0
Growth Rate: 0.00%
Updated:May 12 2024
huggingface.co

Total runs: 30
Run Growth: 0
Growth Rate: 0.00%
Updated:March 13 2024
huggingface.co

Total runs: 28
Run Growth: 28
Growth Rate: 100.00%
Updated:April 10 2025
huggingface.co

Total runs: 9
Run Growth: -6
Growth Rate: -66.67%
Updated:June 11 2025
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:November 19 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 18 2024
huggingface.co

Total runs: 0
Run Growth: -2
Growth Rate: 0.00%
Updated:April 10 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 08 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 11 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 16 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 25 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 19 2026