File size: 6,341 Bytes
f6d485f
 
 
46ce443
f6d485f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49377b4
f6d485f
 
 
 
 
 
 
85553b0
f6d485f
85553b0
f6d485f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46ce443
f6d485f
 
 
 
 
 
8fe881b
f6d485f
 
 
 
 
 
 
 
9a0e11b
f6d485f
 
9a0e11b
9b823f8
 
f6d485f
 
 
 
 
 
28b1892
8fe881b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46ce443
 
 
 
8fe881b
 
 
 
 
 
 
 
 
 
 
 
 
f6d485f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
---
license: other
license_name: bria-2.3-fast-lora
license_link: https://bria.ai/bria-huggingface-model-license-agreement/
library_name: diffusers
inference: false

    
tags:
- text-to-image
- legal liability
- commercial use
extra_gated_prompt: Model weights from BRIA AI can be obtained after purchasing a commercial license. Fill in the form below and we reach out to you.
extra_gated_fields:
  Name: text
  Company/Org name: text
  Org Type (Early/Growth Startup, Enterprise, Academy): text
  Role: text
  Country: text
  Email: text
  By submitting this form, I agree to BRIA’s Privacy policy and Terms & conditions, see links below: checkbox
---

# BRIA 2.3 FAST-LORA: Text-to-Image Model for Commercial Licensing

Introducing Bria AI 2.3 FAST-LORA, a groundbreaking text-to-image model explicitly designed for commercial applications in the enterprise. This model combines technological innovation with ethical responsibility and legal security, setting a new standard in the AI industry. Bria AI licenses the foundation model with full legal liability coverage. Our dataset does not contain copyrighted materials, such as fictional characters, logos, trademarks, public figures, harmful content, or privacy-infringing content. 


For more information, please visit our [website](https://bria.ai/).

Join our [Discord community](https://discord.gg/Nxe9YW9zHS) for more information, tutorials, tools, and to connect with other users!




# What's New


BRIA 2.3 FAST-LORA is a speedy version of BRIA 2.3, that provides an optimal balance between speed and accuracy. Engineered for efficiency, it takes only 1.64 seconds to generate images on a standard NVIDIA A10 GPU, achieving excellent image quality with an 80% reduction in inference time.

Most importantly, BRIA 2.3 FAST-LORA is compatible with additional plugins, such as ControlNets. This enables the building of complex pipelines while still maintaining fast inference.

[CLICK HERE FOR A DEMO](https://huggingface.co/spaces/briaai/BRIA-2.3-FAST-LORA)


### Get Access

Interested in BRIA 2.3 FAST-LORA? Purchase is required to access BRIA 2.3 FAST-LORA, ensuring royalty management with our data partners and full liability coverage for commercial use.

Are you a startup or a student? We encourage you to apply for our [Startup Program](https://pages.bria.ai/the-visual-generative-ai-platform-for-builders-startups-plan?_gl=1*cqrl81*_ga*MTIxMDI2NzI5OC4xNjk5NTQ3MDAz*_ga_WRN60H46X4*MTcwOTM5OTMzNC4yNzguMC4xNzA5Mzk5MzM0LjYwLjAuMA..) to request access. This program is designed to support emerging businesses and academic pursuits with our cutting-edge technology.

Contact us today to unlock the potential of BRIA 2.3 FAST-LORA! By submitting the form above, you agree to BRIA’s [Privacy policy](https://bria.ai/privacy-policy/) and [Terms & conditions.](https://bria.ai/terms-and-conditions/)

![](fast-lora_example.png)

# Key Features

- **Legally Compliant:** Offers full legal liability coverage for copyright and privacy infringements. Thanks to training on 100% licensed data from leading data partners, we ensure the ethical use of content.

- **Patented Attribution Engine:** Our attribution engine is our way to compensate our data partners, powered by our proprietary and patented algorithms. 

- **Enterprise-Ready:** Specifically designed for business applications, Bria AI 2.3 delivers high-quality, compliant imagery for a variety of commercial needs.

- **Customizable Technology:** Provides access to source code and weights for extensive customization, catering to specific business requirements.


### Model Description

- **Developed by:** BRIA AI
- **Model type:** Text-to-Image model
- **License:** [BRIA 2.3 FAST-LORA Licensing terms & conditions](https://bria.ai/bria-huggingface-model-license-agreement/).
- Purchase is required to license and access the model.
- **Model Description:** BRIA 2.3 Fast is an efficient text-to-image model trained exclusively on a professional-grade, licensed dataset. It is designed for commercial use and includes full legal liability coverage.
- **Resources for more information:** [BRIA AI](https://bria.ai/)



# Code example using Diffusers 


```
pip install diffusers
```


```py
from diffusers import DiffusionPipeline, LCMScheduler
import torch

pipe = DiffusionPipeline.from_pretrained("briaai/BRIA-2.3", torch_dtype=torch.float16)
pipe.load_lora_weights("briaai/BRIA-2.3-FAST-LORA")
pipe.fuse_lora()

pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
pipe.to("cuda")

prompt = "A portrait of a Beautiful and playful ethereal singer, golden designs, highly detailed, blurry background"

image = pipe(prompt, num_inference_steps=8, guidance_scale=0.0).images[0]
```


# Using both LCM LORA and ControlNet


```
condition_image_path = "A_dog.png"
prompt = "A white dog"
seed = 222
w, h = 1024, 1024

controlnet = ControlNetModel.from_pretrained(
    "briaai/BRIA-2.3-ControlNet-Canny",
    torch_dtype=torch.float16
)
pipe = StableDiffusionXLControlNetPipeline.from_pretrained("briaai/BRIA-2.3", controlnet=controlnet, torch_dtype=torch.float16)


pipe.load_lora_weights("briaai/BRIA-2.3-FAST-LORA")
pipe.fuse_lora()
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
pipe.force_zeros_for_empty_prompt = False
pipe.to("cuda")


#To run much faster use (or disable it)
pipeline.unet = torch.compile(pipeline.unet, mode=‘reduce-overhead’, fullgraph=True)

negative_prompt = "Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly drawn hands,Mutation,Blurry,Extra limbs,Gross proportions,Missing arms,Mutated hands,Long neck,Duplicate,Mutilated,Mutilated hands,Poorly drawn face,Deformed,Bad anatomy,Cloned face,Malformed limbs,Missing legs,Too many fingers"
generator = torch.Generator("cuda").manual_seed(seed)

# Calculate Canny image
low_threshold, high_threshold = 100, 200
input_image = cv2.imread(condition_image_path)
input_image = cv2.Canny(input_image, low_threshold, high_threshold)
input_image = input_image[:, :, None]
input_image = np.concatenate([input_image, input_image, input_image], axis=2)
condition_image = Image.fromarray(input_image)

#Generate
image = pipe(prompt, image=condition_image, controlnet_conditioning_scale=1.0, num_inference_steps=8, width=w,height=h, guidance_scale=0.0, negative_prompt=negative_prompt, generator=generator,).images[0]
```