Card: code links and usage for the budgetpix package layout
Browse files
README.md
CHANGED
|
@@ -16,7 +16,7 @@ tags:
|
|
| 16 |
|
| 17 |
# BudgetPix-pMF
|
| 18 |
|
| 19 |
-
🌐 [Project page](https://budgetany.github.io/budgetpix/) | 💻 [Code](https://github.com/BudgetAny/BudgetPix/tree/main/pmf) | 📄 [Paper](https://arxiv.org/abs/2610.12307) | 🧩 [BudgetAny](https://huggingface.co/BudgetAny)
|
| 20 |
|
| 21 |
**One checkpoint, any token budget.** One-step class-conditional ImageNet generation in pixel space with [pixel MeanFlow (pMF)](https://github.com/Lyy-iiis/pMF), fine-tuned with BudgetPix compute-adaptive tokenization. At inference you choose how many tokens the transformer runs on: an entropy-based detail map merges the flattest regions into coarse tokens first and gives the fine tokens to the most detailed ones; the layout is chosen up front, by default from the model's own dense sample of the same class and noise. The same weights serve every budget.
|
| 22 |
|
|
@@ -37,9 +37,9 @@ tags:
|
|
| 37 |
## Usage
|
| 38 |
|
| 39 |
```bash
|
| 40 |
-
git clone https://github.com/BudgetAny/BudgetPix && cd BudgetPix
|
| 41 |
hf download BudgetAny/BudgetPix-pMF budgetpix_pmf_l16_256.pt --local-dir weights
|
| 42 |
-
python
|
| 43 |
```
|
| 44 |
|
| 45 |
`--budget` is the number of tokens per image (256 is the dense grid).
|
|
|
|
| 16 |
|
| 17 |
# BudgetPix-pMF
|
| 18 |
|
| 19 |
+
🌐 [Project page](https://budgetany.github.io/budgetpix/) | 💻 [Code](https://github.com/BudgetAny/BudgetPix/tree/main/budgetpix/pmf) | 📄 [Paper](https://arxiv.org/abs/2610.12307) | 🧩 [BudgetAny](https://huggingface.co/BudgetAny)
|
| 20 |
|
| 21 |
**One checkpoint, any token budget.** One-step class-conditional ImageNet generation in pixel space with [pixel MeanFlow (pMF)](https://github.com/Lyy-iiis/pMF), fine-tuned with BudgetPix compute-adaptive tokenization. At inference you choose how many tokens the transformer runs on: an entropy-based detail map merges the flattest regions into coarse tokens first and gives the fine tokens to the most detailed ones; the layout is chosen up front, by default from the model's own dense sample of the same class and noise. The same weights serve every budget.
|
| 22 |
|
|
|
|
| 37 |
## Usage
|
| 38 |
|
| 39 |
```bash
|
| 40 |
+
git clone https://github.com/BudgetAny/BudgetPix && cd BudgetPix # setup: see README.md
|
| 41 |
hf download BudgetAny/BudgetPix-pMF budgetpix_pmf_l16_256.pt --local-dir weights
|
| 42 |
+
python -m budgetpix.pmf.sample --ckpt weights/budgetpix_pmf_l16_256.pt --budget 128 --classes 207,88,417,933
|
| 43 |
```
|
| 44 |
|
| 45 |
`--budget` is the number of tokens per image (256 is the dense grid).
|