huggingface / huggingface/diffusers

Modular Pipeline: support for PixArtAlphaPipeline

オープン
#13,301 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
34.5k
フォーク
7.3k
平均マージ
3日 3時間
マージ済み PR(30日)
91

説明

### Model/Pipeline/Scheduler description

I would like to implement a modular version of the PixArt pipeline family, as discussed in [#13295](https://github.com/huggingface/diffusers/issues/13295#issuecomment-4103395537).

The initial scope includes the `PixArtAlphaPipeline` under [src/diffusers/pipelines/pixart_alpha/](https://github.com/huggingface/diffusers/tree/main/src/diffusers/pipelines/pixart_alpha). Currently, the focus is on PixArt-α only. The implementation would be structured so that `PixArtSigmaPipeline` support can be added later in a follow-up.

## Current plan:

Add a new modular PixArt package under `src/diffusers/modular_pipelines/`, following the structure of the existing built-in modular pipelines.
- `encoders` for prompt encoding
- `before_denoise` for input / latent preparation and timestep setup
- `denoise` for the main PixArt denoising loop
- `decoders` for VAE decoding and post-processing

I’m happy to implement this myself, and this would be my first contribution to Diffusers.

### Open source status

- [x] The model implementation is available.
- [x] The model weights are available (Only relevant if addition is not a scheduler).

### Provide useful links for the implementation

## Relevant references:
- Current Diffusers implementation:
- `src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py`
- `src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py`
- PixArt docs / weights:
- https://huggingface.co/docs/diffusers/api/pipelines/pixart
- https://huggingface.co/PixArt-alpha/PixArt-XL-2-1024-MS

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start with src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py and review the existing built-in modular pipeline structure. Organize a new package under src/diffusers/modular_pipelines/ with encoders, before_denoise, denoise, and decoders for PixArt-α. Done means PixArtAlphaPipeline has modular support while PixArtSigmaPipeline remains out of scope.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python, pytorch
領域
machine-learning
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。