Instructions to use LibreYOLO/LibrePRX256 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LibreYOLO
How to use LibreYOLO/LibrePRX256 with LibreYOLO:
# pip install libreyolo # See the model card for usage: https://huggingface.co/LibreYOLO/LibrePRX256
- Diffusers
How to use LibreYOLO/LibrePRX256 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("LibreYOLO/LibrePRX256", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
|
Download README.md from LibreYOLO/LibrePRX256: direct link, hf CLI and curl.
- Browser
- Download file 2.29 kB
-
https://huggingface.co/LibreYOLO/LibrePRX256/resolve/main/README.md
- Command line
-
hf download hf://LibreYOLO/LibrePRX256/README.md
-
curl -L -o README.md https://huggingface.co/LibreYOLO/LibrePRX256/resolve/main/README.md
2.29 kB
| license: apache-2.0 | |
| library_name: libreyolo | |
| pipeline_tag: text-to-image | |
| base_model: Photoroom/prx-256-t2i | |
| tags: | |
| - text-to-image | |
| - prx | |
| - photoroom | |
| - diffusers | |
| - libreyolo | |
| # LibrePRX256 | |
| PRX, Photoroom's 1.3B text-to-image transformer trained from scratch, with a T5Gemma 2B text encoder and the FLUX.1 VAE. Native resolution 256; base model, meant for fine-tuning. Mirrored for LibreYOLO. | |
| ```python | |
| from libreyolo import LibreGen | |
| model = LibreGen("prx-256") # downloads this repo | |
| model("a red fox sleeping in fresh snow").save("fox.png") | |
| ``` | |
| ```bash | |
| libreyolo generate prompt="a red fox" model=prx-256 | |
| ``` | |
| Install `libreyolo[gen]`. | |
| ## This is a mirror, not a new model | |
| The weights are Photoroom's. Nothing was retrained, converted or re-encoded; | |
| every file is byte-identical to upstream and keeps upstream's diffusers | |
| pipeline layout, so `diffusers` loads this folder as it is. | |
| - Upstream repository: [`Photoroom/prx-256-t2i`](https://huggingface.co/Photoroom/prx-256-t2i) | |
| - Upstream revision: `39a6b3bc5adc5a0271acdcc20c19be2c355e227c` | |
| - Announcement: [We're open-sourcing our text-to-image model and the process behind it](https://huggingface.co/blog/Photoroom/prx-open-source-t2i-model) | |
| | File | SHA-256 | | |
| | --- | --- | | |
| | `text_encoder/model-00001-of-00003.safetensors` | `e7a37fef2b11c87a9a2a43c26fcd7199c1d1b203ef11e10863a56611c8fdb57f` | | |
| | `text_encoder/model-00002-of-00003.safetensors` | `49da6c85ed4ff10f7f1afaa5a37a0b292fdb58aa855916ef584d697155a9bf58` | | |
| | `text_encoder/model-00003-of-00003.safetensors` | `1a6361ba65805092625aa4e2b3b8d42b810ab836682ddc8277088c9a251b4084` | | |
| | `transformer/diffusion_pytorch_model.safetensors` | `5230100f830f399b392fcc09a7e47360e8f56f277710e0d9c00c3e1e3897ac3c` | | |
| | `vae/diffusion_pytorch_model.safetensors` | `8c717328c8ad41faab2ccfd52ae17332505c6833cf176aad56e7b58f2c4d4c94` | | |
| ## License | |
| The PRX weights are Apache-2.0, as published by Photoroom. The bundled T5Gemma 2B text encoder is provided under and subject to the [Gemma Terms of Use](https://ai.google.dev/gemma/terms), and you may not use it for the restricted uses in the [Gemma Prohibited Use Policy](https://ai.google.dev/gemma/prohibited_use_policy). The FLUX.1 [schnell] VAE is Apache-2.0. See [`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE). | |