PRX
PRX 是 Photoroom 的开源文生图模型,一个 1.3B 的 transformer,以 256、512 和 1024 px 共九个检查点发布。PRX Pixel 是它的 7B 兄弟模型,直接在像素上去噪,没有自编码器。LibreYOLO 通过 LibreGen 工厂,在 diffusers 流水线上运行全部十个模型。
- 任务
- image generation
- 尺寸
- prxpixel: 7b at 1024 px
- 安装
pip install "libreyolo[gen]"- 支持层级
- 兄弟层级,自 v1.8.0 起。一个独立的产品面,有自己的工厂和契约。
- 许可
- 代码采用 MIT,权重采用 Apache-2.0 (PRX's T5Gemma text encoder: Gemma Terms of Use)。商用
安装
pip install "libreyolo[gen]"PRX Pixel 需要 diffusers>=0.39,加载时会给出提示;这个 extra 的下限是 0.38,这样
它可以和 Marigold 的 extra 共存。
生成
权重在首次使用时从 LibreYOLO 的镜像下载,这些镜像与 Photoroom 的仓库逐字节一致。
from libreyolo import LibreGen model = LibreGen("prx-512-sft")result = model("a red fox sleeping in fresh snow", seed=0)result.save("fox.png") # PNG 里还会保存 prompt、seed 和参数from libreyolo import LibreGen model = LibreGen("prx-512-sft-distilled") # 8 步蒸馏版result = model("a red fox", steps=8, guidance=1.0) model = LibreGen("prx") # prx-1024-betaresult = model("a red fox", negative="blurry", imgsz=1024, seed=0) model = LibreGen("prxpixel", offload=True) # prxpixel-7b,需要 diffusers>=0.39results = model(["a red fox", "a blue jay"], n=2, save=True)libreyolo generate prompt="a red fox" model=prx-512-sft negative="blurry"libreyolo generate prompt="a red fox" model=prxpixel-7b seed=0 n=4字符串永远是提示词。一个提示词配 n=1 返回一个 Results;提示词列表或 n > 1
返回一个扁平列表,stream=True 返回一个生成器。result.generated 存放图像
(array、image)、prompt、能复现它的 seed,以及生效的 params。每个家族
参数都是可选的;传入家族没有的参数会抛出异常并列出支持的参数。提示词、seed、设备和
offload 见图像生成任务页。
变体
| 模型 | 参数量 | 可调参数(默认值) | GPU 显存(库给出的数字) |
|---|---|---|---|
prx-1024-beta(别名 prx) | 1.3B | steps(28)、guidance(5.0)、negative("") | 约 21 GB |
prx-512-sft-distilled | 1.3B | steps(8)、guidance(1.0)、negative("") | 约 16 GB |
prx-512-sft、prx-512 | 1.3B | steps(28)、guidance(5.0)、negative("") | 约 16 GB |
prx-512-dc-ae-sft-distilled | 1.3B | steps(8)、guidance(1.0)、negative("") | 约 16 GB |
prx-512-dc-ae-sft、prx-512-dc-ae | 1.3B | steps(28)、guidance(5.0)、negative("") | 约 16 GB |
prx-256-sft、prx-256 | 1.3B | steps(28)、guidance(5.0)、negative("") | 约 16 GB |
prxpixel-7b(别名 prxpixel) | 7B | steps(28)、guidance(5.0)、negative("") | 约 18 GB |
数字是原生分辨率。-dc-ae 用 32x 的 DC-AE 自编码器代替 FLUX.1 VAE,所以边长向上取整
到 32 的倍数,而不是 16。-sft 是监督微调版,可以直接使用,-sft-distilled 是它的
8 步蒸馏版。不带 -sft 的检查点是用于微调的基础模型。prx-1024-beta 是 Photoroom 的
1024 预览版。PRX Pixel 自带一个 Qwen3-VL 文本编码器,没有自编码器。
导出
| 任务 | ONNX | TorchScript | ExecuTorch | TensorRT | OpenVINO | Paddle | MNN | RKNN | Axelera | ncnn | TFLite | CoreML | Core AI |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Image generation | Image generation to ONNX:不支持 | Image generation to TorchScript:不支持 | Image generation to ExecuTorch:不支持 | Image generation to TensorRT:不支持 | Image generation to OpenVINO:不支持 | Image generation to Paddle:不支持 | Image generation to MNN:不支持 | Image generation to RKNN:不支持 | Image generation to Axelera:不支持 | Image generation to ncnn:不支持 | Image generation to TFLite:不支持 | Image generation to CoreML:不支持 | Image generation to Core AI:不支持 |
与所有 LibreGen 家族一样,export()、train() 和 val() 会抛出异常。
许可证
请检查你所下载的具体权重在 Hugging Face 仓库中的许可。LibreYOLO 组织里的每个检查点都附有许可,同一家族内也不一定相同。该仓库是权威来源;以下摘要说明本页上次验证时适用的情况。
这里只说明涉及的许可证,不构成法律意见。如果答案对商用很重要,请自行阅读许可证并咨询法律顾问。
- 原始工作
- PRX and PRX Pixel, Photoroom
- 上游许可
- Apache-2.0
- LibreYOLO 代码
- MIT
- 权重
- 采用 Apache-2.0 (PRX's T5Gemma text encoder: Gemma Terms of Use) 许可,重新发布在 huggingface.co/LibreYOLO
- 解读
- Photoroom releases the PRX and PRX Pixel weights under Apache-2.0, a permissive license, so they can be used in commercial and closed-source products; redistributing them means keeping the license text and notices, and the license grants a patent license. The exception is PRX's bundled T5Gemma 2B text encoder, which stays under Google's Gemma Terms of Use and the Gemma Prohibited Use Policy: commercial use is allowed, but the prohibited uses pass on to anyone you share it with, and PRX's model cards forbid those uses for the whole model. PRX's autoencoder is the FLUX.1 [schnell] VAE (Apache-2.0) or DC-AE (MIT); PRX Pixel has no autoencoder and bundles the Qwen3-VL-Embedding-2B text encoder (Apache-2.0). LibreYOLO's adapter is its own MIT code that calls the Apache-2.0 diffusers PRXPipeline and PRXPixelPipeline; no upstream source is ported. Weights download from LibreYOLO's byte-identical mirrors of Photoroom's nine PRX repositories and prxpixel-t2i (LibreYOLO/LibrePRX<size> and LibreYOLO/LibrePRXPixel7b), each pinned to a commit and not gated.
PRX 和 PRX Pixel 出自 Photoroom。权重采用 Apache-2.0 许可,所以可以商用。例外是 PRX 自带的 T5Gemma 2B 文本编码器,它仍受 Google 的 Gemma Terms of Use 和 Prohibited Use Policy 约束:允许商用,但禁止的 用途会传递给你分享给的任何人,而且 PRX 的模型卡对整个模型禁止这些用途。自编码器是 FLUX.1 [schnell] VAE(Apache-2.0)或 DC-AE(MIT);PRX Pixel 的 Qwen3-VL-Embedding-2B 文本编码器采用 Apache-2.0 许可。
LibreYOLO 的适配器是它自己采用 MIT 许可的代码,构建在采用 Apache-2.0 许可的 diffusers
PRXPipeline 和 PRXPixelPipeline 之上。权重从 LibreYOLO/LibrePRX<size> 和
LibreYOLO/LibrePRXPixel7b 下载,这些是固定到某个 commit、逐字节一致、不需要申请
访问的镜像。
引用
@misc{photoroom2026prx,
title = {PRX: an open-source text-to-image model},
author = {Bertoin, David and Frigg, Roman and Almazán, Jon and Andres, Eliot},
year = {2026},
url = {https://huggingface.co/blog/Photoroom/prx-open-source-t2i-model},
}复制自作者在 github.com/Photoroom/PRX#citation 上提供的引用块。