fuselift: document released 50k samples, drop seed note
Browse files- fuselift/README.md +25 -2
fuselift/README.md
CHANGED
|
@@ -20,6 +20,7 @@ and **not** redistributed here.
|
|
| 20 |
| --- | --- |
|
| 21 |
| `ditxl_h0_raev2k7_ep080.safetensors` | DiT-XL (`DiTwDDTHeadIG`, 876.2M params), **EMA weights only**, epoch 80, step 100,080 |
|
| 22 |
| `h0_stats_raev2k7.pt` | per-position `mean` / `var` of h0 (`[1152, 16, 16]`) and `mean_cls` (`[1, 1, 1152]`), 50k ImageNet train images |
|
|
|
|
| 23 |
| `code/src/stage1/fuselift.py` | `RAEFuseLift` stage-1 wrapper (encode to h_k, decode from h_k) |
|
| 24 |
| `code/src/compute_fuselift_stats.py` | recomputes `h0_stats_raev2k7.pt` |
|
| 25 |
| `code/configs/stage2/training/fuselift-h0-raev2k7-ditxl.yaml` | model, sampler and training recipe |
|
|
@@ -49,8 +50,8 @@ Same decoder, same evaluation protocol, generator on the encoder latent `z`:
|
|
| 49 |
| **FuseLift, on h0** (this checkpoint) | 1.76 / 209.2 / 3.97 | **0.98** / 253.4 / 2.14 |
|
| 50 |
|
| 51 |
Epoch 80 is the best checkpoint of the run on gFID and FDr6, with and without guidance.
|
| 52 |
-
Each number is a single 50k evaluation of a single training run. The
|
| 53 |
-
|
| 54 |
|
| 55 |
## How to run
|
| 56 |
|
|
@@ -109,6 +110,28 @@ python src/eval_fid_dit.py \
|
|
| 109 |
via `--data`). The table above uses precomputed ImageNet train statistics instead, so expect the
|
| 110 |
absolute value to move with the reference; guided FID against validation images is noticeably higher.
|
| 111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
### 4. Train
|
| 113 |
|
| 114 |
```bash
|
|
|
|
| 20 |
| --- | --- |
|
| 21 |
| `ditxl_h0_raev2k7_ep080.safetensors` | DiT-XL (`DiTwDDTHeadIG`, 876.2M params), **EMA weights only**, epoch 80, step 100,080 |
|
| 22 |
| `h0_stats_raev2k7.pt` | per-position `mean` / `var` of h0 (`[1152, 16, 16]`) and `mean_cls` (`[1, 1, 1152]`), 50k ImageNet train images |
|
| 23 |
+
| `samples/ditxl_h0_raev2k7_ep080_ig178_50k.npz` | the 50,000 IG 1.78 samples of this checkpoint behind the 0.98 gFID: `arr_0`, uint8 `[50000, 256, 256, 3]`, class labels of the ImageNet validation set (50 per class) |
|
| 24 |
| `code/src/stage1/fuselift.py` | `RAEFuseLift` stage-1 wrapper (encode to h_k, decode from h_k) |
|
| 25 |
| `code/src/compute_fuselift_stats.py` | recomputes `h0_stats_raev2k7.pt` |
|
| 26 |
| `code/configs/stage2/training/fuselift-h0-raev2k7-ditxl.yaml` | model, sampler and training recipe |
|
|
|
|
| 50 |
| **FuseLift, on h0** (this checkpoint) | 1.76 / 209.2 / 3.97 | **0.98** / 253.4 / 2.14 |
|
| 51 |
|
| 52 |
Epoch 80 is the best checkpoint of the run on gFID and FDr6, with and without guidance.
|
| 53 |
+
Each number is a single 50k evaluation of a single training run. The 50k samples behind the guided
|
| 54 |
+
epoch-80 entry are released (`samples/`), so that number can be checked directly (see below).
|
| 55 |
|
| 56 |
## How to run
|
| 57 |
|
|
|
|
| 110 |
via `--data`). The table above uses precomputed ImageNet train statistics instead, so expect the
|
| 111 |
absolute value to move with the reference; guided FID against validation images is noticeably higher.
|
| 112 |
|
| 113 |
+
### Check the reported gFID with the released samples
|
| 114 |
+
|
| 115 |
+
The table numbers use [fd_evaluator](https://github.com/nanovisionx/nanogen-evals) with its default
|
| 116 |
+
ImageNet-256 train statistics (the official RAEv2 reference):
|
| 117 |
+
|
| 118 |
+
```bash
|
| 119 |
+
hf download Hongyang-Du/FuseReg fuselift/samples/ditxl_h0_raev2k7_ep080_ig178_50k.npz --local-dir checkpoints
|
| 120 |
+
pip install --no-deps "git+https://github.com/nanovisionx/nanogen-evals.git@19dfb4c2705333eb8b97e454fb354d47d1fe135b#subdirectory=fd_evaluator"
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
```python
|
| 124 |
+
import numpy as np
|
| 125 |
+
from fd_evaluator import compute_metrics
|
| 126 |
+
|
| 127 |
+
x = np.load("checkpoints/fuselift/samples/ditxl_h0_raev2k7_ep080_ig178_50k.npz")["arr_0"]
|
| 128 |
+
print(compute_metrics(images=x, metrics=["fid", "inception_score", "fdr6"], device="cuda", batch_size=128))
|
| 129 |
+
# fid 0.98, inception_score 253.4, fdr6 2.14
|
| 130 |
+
```
|
| 131 |
+
|
| 132 |
+
The same file works with any other evaluator that takes a uint8 NHWC `.npz` (e.g. the ADM suite),
|
| 133 |
+
with that evaluator's own reference batch.
|
| 134 |
+
|
| 135 |
### 4. Train
|
| 136 |
|
| 137 |
```bash
|