|
| 1 | +<!--Copyright 2025 The HuggingFace Team. All rights reserved. |
| 2 | +
|
| 3 | +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with |
| 4 | +the License. You may obtain a copy of the License at |
| 5 | +
|
| 6 | +http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +
|
| 8 | +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on |
| 9 | +an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the |
| 10 | +specific language governing permissions and limitations under the License. |
| 11 | +--> |
| 12 | + |
| 13 | +# Bria 3.2 |
| 14 | + |
| 15 | +Bria 3.2 is the next-generation commercial-ready text-to-image model. With just 4 billion parameters, it provides exceptional aesthetics and text rendering, evaluated to provide on par results to leading open-source models, and outperforming other licensed models. |
| 16 | +In addition to being built entirely on licensed data, 3.2 provides several advantages for enterprise and commercial use: |
| 17 | + |
| 18 | +- Efficient Compute - the model is X3 smaller than the equivalent models in the market (4B parameters vs 12B parameters other open source models) |
| 19 | +- Architecture Consistency: Same architecture as 3.1—ideal for users looking to upgrade without disruption. |
| 20 | +- Fine-tuning Speedup: 2x faster fine-tuning on L40S and A100. |
| 21 | + |
| 22 | +Original model checkpoints for Bria 3.2 can be found [here](https://huggingface.co/briaai/BRIA-3.2). |
| 23 | + |
| 24 | + |
| 25 | +## Inference |
| 26 | + |
| 27 | +The Diffusers version of Chroma is based on the [`unlocked-v37`](https://huggingface.co/lodestones/Chroma/blob/main/chroma-unlocked-v37.safetensors) version of the original model, which is available in the [Chroma repository](https://huggingface.co/lodestones/Chroma). |
| 28 | + |
| 29 | +```python |
| 30 | +import torch |
| 31 | +from diffusers import BriaPipeline |
| 32 | + |
| 33 | +pipe = BriaPipeline.from_pretrained("briaai/BRIA-3.2",revision="bria_3_2_diffusers", torch_dtype=torch.bfloat16) |
| 34 | +pipe.enable_model_cpu_offload() |
| 35 | + |
| 36 | +prompt = "A high-fashion close-up portrait of a blonde woman in clear sunglasses. The image uses a bold teal and red color split for dramatic lighting. The background is a simple teal-green. The photo is sharp and well-composed, and is designed for viewing with anaglyph 3D glasses for optimal effect. It looks professionally done." |
| 37 | + |
| 38 | +image = pipe(prompt).images[0] |
| 39 | +image.save("bria.png") |
| 40 | +``` |
| 41 | + |
| 42 | + |
| 43 | +## BriaPipeline |
| 44 | + |
| 45 | +[[autodoc]] BriaPipeline |
| 46 | + - all |
| 47 | + - __call__ |
| 48 | + |
0 commit comments