Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9e253a7
Bria FIBO pipeline
galbria Oct 26, 2025
371e5f5
style fixs
galbria Oct 26, 2025
a617433
fix CR
galbria Oct 27, 2025
84a0bee
Merge branch 'main' into bria-fibo
galbria Oct 27, 2025
f1b5232
Refactor BriaFibo classes and update pipeline parameters
galbria Oct 27, 2025
66aecc4
Merge branch 'bria-fibo' of github.com:galbria/diffusers into bria-fibo
galbria Oct 27, 2025
526004c
Merge branch 'main' into bria-fibo
galbria Oct 27, 2025
57e6315
edit the docs of FIBO
galbria Oct 27, 2025
0d3fc83
Merge branch 'bria-fibo' of github.com:galbria/diffusers into bria-fibo
galbria Oct 27, 2025
d0a6cb6
Remove unused BriaFibo imports and update CPU offload method in BriaF…
galbria Oct 28, 2025
5b8ec94
Merge branch 'main' into bria-fibo
galbria Oct 28, 2025
69e4959
Refactor FIBO classes to BriaFibo naming convention
galbria Oct 28, 2025
78109e0
Merge branch 'bria-fibo' of github.com:galbria/diffusers into bria-fibo
galbria Oct 28, 2025
a58ae64
Merge branch 'main' into bria-fibo
galbria Oct 28, 2025
612617b
Add BriaFiboTransformer2DModel import to transformers module
galbria Oct 28, 2025
de68f2a
Merge branch 'bria-fibo' of github.com:galbria/diffusers into bria-fibo
galbria Oct 28, 2025
51353e8
Remove unused BriaFibo imports from modular pipelines and add BriaFib…
galbria Oct 28, 2025
4c6f59f
Update BriaFibo classes with copied documentation and fix import typo…
galbria Oct 28, 2025
455ae70
Remove unused BriaFibo imports from __init__.py to streamline modular…
galbria Oct 28, 2025
94abe1c
Refactor documentation comments in BriaFibo classes to indicate inspi…
galbria Oct 28, 2025
dc77b31
change Inspired by to Based on
galbria Oct 28, 2025
a383771
add reference link and fix trailing whitespace
galbria Oct 28, 2025
7f3dd1d
Add BriaFiboTransformer2DModel documentation and update comments in B…
sayakpaul Oct 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/source/en/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@
title: AllegroTransformer3DModel
- local: api/models/aura_flow_transformer2d
title: AuraFlowTransformer2DModel
- local: api/models/transformer_bria_fibo
title: BriaFiboTransformer2DModel
- local: api/models/bria_transformer
title: BriaTransformer2DModel
- local: api/models/chroma_transformer
Expand Down Expand Up @@ -469,6 +471,8 @@
title: BLIP-Diffusion
- local: api/pipelines/bria_3_2
title: Bria 3.2
- local: api/pipelines/bria_fibo
title: Bria Fibo
- local: api/pipelines/chroma
title: Chroma
- local: api/pipelines/cogview3
Expand Down
19 changes: 19 additions & 0 deletions docs/source/en/api/models/transformer_bria_fibo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!--Copyright 2025 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
-->

# BriaFiboTransformer2DModel

A modified flux Transformer model from [Bria](https://huggingface.co/briaai/FIBO)

## BriaFiboTransformer2DModel

[[autodoc]] BriaFiboTransformer2DModel
45 changes: 45 additions & 0 deletions docs/source/en/api/pipelines/bria_fibo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!--Copyright 2025 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
-->

# Bria Fibo

Text-to-image models have mastered imagination - but not control. FIBO changes that.

FIBO is trained on structured JSON captions up to 1,000+ words and designed to understand and control different visual parameters such as lighting, composition, color, and camera settings, enabling precise and reproducible outputs.

With only 8 billion parameters, FIBO provides a new level of image quality, prompt adherence and proffesional control.

FIBO is trained exclusively on a structured prompt and will not work with freeform text prompts.
you can use the [FIBO-VLM-prompt-to-JSON](https://huggingface.co/briaai/FIBO-VLM-prompt-to-JSON) model or the [FIBO-gemini-prompt-to-JSON](https://huggingface.co/briaai/FIBO-gemini-prompt-to-JSON) to convert your freeform text prompt to a structured JSON prompt.

its not recommended to use freeform text prompts directly with FIBO, as it will not produce the best results.

you can learn more about FIBO in [Bria Fibo Hugging Face page](https://huggingface.co/briaai/FIBO).


## Usage

_As the model is gated, before using it with diffusers you first need to go to the [Bria Fibo Hugging Face page](https://huggingface.co/briaai/FIBO), fill in the form and accept the gate. Once you are in, you need to login so that your system knows you’ve accepted the gate._

Use the command below to log in:

```bash
hf auth login
```


## BriaPipeline

[[autodoc]] BriaPipeline
- all
- __call__

4 changes: 4 additions & 0 deletions src/diffusers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
"AutoencoderOobleck",
"AutoencoderTiny",
"AutoModel",
"BriaFiboTransformer2DModel",
"BriaTransformer2DModel",
"CacheMixin",
"ChromaTransformer2DModel",
Expand Down Expand Up @@ -430,6 +431,7 @@
"AuraFlowPipeline",
"BlipDiffusionControlNetPipeline",
"BlipDiffusionPipeline",
"BriaFiboPipeline",
"BriaPipeline",
"ChromaImg2ImgPipeline",
"ChromaPipeline",
Expand Down Expand Up @@ -901,6 +903,7 @@
AutoencoderOobleck,
AutoencoderTiny,
AutoModel,
BriaFiboTransformer2DModel,
BriaTransformer2DModel,
CacheMixin,
ChromaTransformer2DModel,
Expand Down Expand Up @@ -1103,6 +1106,7 @@
AudioLDM2UNet2DConditionModel,
AudioLDMPipeline,
AuraFlowPipeline,
BriaFiboPipeline,
BriaPipeline,
ChromaImg2ImgPipeline,
ChromaPipeline,
Expand Down
2 changes: 2 additions & 0 deletions src/diffusers/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
_import_structure["transformers.transformer_2d"] = ["Transformer2DModel"]
_import_structure["transformers.transformer_allegro"] = ["AllegroTransformer3DModel"]
_import_structure["transformers.transformer_bria"] = ["BriaTransformer2DModel"]
_import_structure["transformers.transformer_bria_fibo"] = ["BriaFiboTransformer2DModel"]
_import_structure["transformers.transformer_chroma"] = ["ChromaTransformer2DModel"]
_import_structure["transformers.transformer_cogview3plus"] = ["CogView3PlusTransformer2DModel"]
_import_structure["transformers.transformer_cogview4"] = ["CogView4Transformer2DModel"]
Expand Down Expand Up @@ -174,6 +175,7 @@
from .transformers import (
AllegroTransformer3DModel,
AuraFlowTransformer2DModel,
BriaFiboTransformer2DModel,
BriaTransformer2DModel,
ChromaTransformer2DModel,
CogVideoXTransformer3DModel,
Expand Down
1 change: 1 addition & 0 deletions src/diffusers/models/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from .transformer_2d import Transformer2DModel
from .transformer_allegro import AllegroTransformer3DModel
from .transformer_bria import BriaTransformer2DModel
from .transformer_bria_fibo import BriaFiboTransformer2DModel
from .transformer_chroma import ChromaTransformer2DModel
from .transformer_cogview3plus import CogView3PlusTransformer2DModel
from .transformer_cogview4 import CogView4Transformer2DModel
Expand Down
Loading