Spaces:
Paused
Paused
|
Download README.md from PrunaAI/P-Q-Image-2.1-DWD: direct link, hf CLI and curl.
- Browser
- Download file 3.03 kB
-
https://huggingface.co/spaces/PrunaAI/P-Q-Image-2.1-DWD/resolve/main/README.md
- Command line
-
hf download hf://spaces/PrunaAI/P-Q-Image-2.1-DWD/README.md
-
curl -L -o README.md https://huggingface.co/spaces/PrunaAI/P-Q-Image-2.1-DWD/resolve/main/README.md
3.03 kB
| title: P-Q-Image-2.1-DWD | |
| emoji: ⚡ | |
| colorFrom: purple | |
| colorTo: indigo | |
| sdk: gradio | |
| sdk_version: 6.30.0 | |
| python_version: "3.12" | |
| app_file: app.py | |
| pinned: false | |
| startup_duration_timeout: 1h | |
| short_description: Qwen-Image-2.1-Turbo without the VAE decode | |
| models: | |
| - PrunaAI/P-Q-Image-2.1-DWD | |
| - PrunaAI/P-Q-Image-2.1-DWD-Comfy | |
| - Qwen/Qwen-Image-2.1-Turbo | |
| license: other | |
| license_name: qwen-research | |
| license_link: https://huggingface.co/PrunaAI/P-Q-Image-2.1-DWD/blob/main/LICENSE | |
| # P-Q-Image-2.1-DWD | |
| [Qwen-Image-2.1-Turbo](https://huggingface.co/Qwen/Qwen-Image-2.1-Turbo) with a decoder-free pixel head. At the last | |
| of the model's 8 sampling steps, a fine-tuned copy of the transformer's last 4 blocks and a small linear head write the | |
| image's pixels directly, so the last Euler step and the VAE decode never run. Steps 1 to 7 are the stock model. It is | |
| our replication of DWD, *Decoding Without a Decoder* ([arXiv 2611.22287](https://arxiv.org/abs/2611.22287)). | |
| - **`/` — Studio** (`gr.Server` API + custom UI, Pruna design, dark and light themes): Generate and Edit modes, | |
| aspect-ratio and resolution controls (1 MP, the training size, and the model's 2K sizes; the evaluated sizes are | |
| marked), up to 4 condition images for edits, seed control, the model card's examples (prompts, edit inputs and | |
| seeds), run history with one-click restore, and a timing panel for each run. In Edit mode, the split view | |
| compares the source with the edited image. | |
| - **`/workflow` — Workflow canvas** (`gr.Workflow`): one prompt into the DWD generate node, and the DWD image chained | |
| into a DWD edit. To change the starter graph, edit `workflow.json`. | |
| | | | | |
| |---|---| | |
| | Sampling | The Turbo model's 8 steps, no CFG; the head replaces the last step | | |
| | Text-to-image | 1 MP (1024 × 1024, 1152 × 896, 896 × 1152, 1344 × 768, 768 × 1344) and 2K (2048 × 2048, 2528 × 1696, 1696 × 2528, 2752 × 1536, 1536 × 2752); other ratios run at the same area | | |
| | Editing | The source's aspect ratio at about 1 MP or 2K; condition images at about 1 MP | | |
| | VAE | The encoder only, for edits; the decoder never runs | | |
| The `generate` API endpoint takes `prompt`, `aspect`, `resolution` (`1 MP` or `2K`), `seed` and `randomize`. The | |
| `edit` endpoint takes `source` (an uploaded file path), `instruction`, `ref2` to `ref4`, `resolution`, `seed` and | |
| `randomize`. Both return `image_data`, `seed`, `info` and `timing_ms`. | |
| The `pq_image_dwd/` folder is the inference package from the model repository (Apache-2.0), copied as is. Set | |
| `DWD_TAIL` to a local `dwd_tail.safetensors` (or a directory holding it) to run against local weights. | |
| The edit example inputs are the input panels of the model card's edit examples, which were generated with the stock | |
| model. | |
| - Model card: [`PrunaAI/P-Q-Image-2.1-DWD`](https://huggingface.co/PrunaAI/P-Q-Image-2.1-DWD) | |
| - ComfyUI: [`PrunaAI/P-Q-Image-2.1-DWD-Comfy`](https://huggingface.co/PrunaAI/P-Q-Image-2.1-DWD-Comfy) | |
| Built with Qwen. The weights are under the Qwen RESEARCH LICENSE AGREEMENT. | |