-
Couldn't load subscription status.
- Fork 6.5k
Bria fibo #12545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,897
−0
Merged
Bria fibo #12545
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
9e253a7
Bria FIBO pipeline
galbria 371e5f5
style fixs
galbria a617433
fix CR
galbria 84a0bee
Merge branch 'main' into bria-fibo
galbria f1b5232
Refactor BriaFibo classes and update pipeline parameters
galbria 66aecc4
Merge branch 'bria-fibo' of github.com:galbria/diffusers into bria-fibo
galbria 526004c
Merge branch 'main' into bria-fibo
galbria 57e6315
edit the docs of FIBO
galbria 0d3fc83
Merge branch 'bria-fibo' of github.com:galbria/diffusers into bria-fibo
galbria d0a6cb6
Remove unused BriaFibo imports and update CPU offload method in BriaF…
galbria 5b8ec94
Merge branch 'main' into bria-fibo
galbria 69e4959
Refactor FIBO classes to BriaFibo naming convention
galbria 78109e0
Merge branch 'bria-fibo' of github.com:galbria/diffusers into bria-fibo
galbria a58ae64
Merge branch 'main' into bria-fibo
galbria 612617b
Add BriaFiboTransformer2DModel import to transformers module
galbria de68f2a
Merge branch 'bria-fibo' of github.com:galbria/diffusers into bria-fibo
galbria 51353e8
Remove unused BriaFibo imports from modular pipelines and add BriaFib…
galbria 4c6f59f
Update BriaFibo classes with copied documentation and fix import typo…
galbria 455ae70
Remove unused BriaFibo imports from __init__.py to streamline modular…
galbria 94abe1c
Refactor documentation comments in BriaFibo classes to indicate inspi…
galbria dc77b31
change Inspired by to Based on
galbria a383771
add reference link and fix trailing whitespace
galbria 7f3dd1d
Add BriaFiboTransformer2DModel documentation and update comments in B…
sayakpaul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ``` | ||
|
|
||
galbria marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ## BriaPipeline | ||
|
|
||
| [[autodoc]] BriaPipeline | ||
| - all | ||
| - __call__ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.