Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,78 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
## Checkpoints for SlimFlow
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
cd SlimFlow
|
| 9 |
+
huggingface-cli download Yuanzhi/SlimFlow --local-dir ckpts
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
########################## CIFAR-10 ##########################
|
| 14 |
+
```bash
|
| 15 |
+
python ./image_sampling.py \
|
| 16 |
+
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \
|
| 17 |
+
--sampling_dir "./ckpts/CIFAR_2_rectified_flow_100000edm_flip_warmup_300000_28m.pth" \
|
| 18 |
+
--config.eval.batch_size 64 \
|
| 19 |
+
--config.model.nf 128 --config.model.num_res_blocks 2 --config.data.image_size 32 --config.model.ch_mult '(1, 2, 2)'
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
```bash
|
| 23 |
+
python ./image_sampling.py \
|
| 24 |
+
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \
|
| 25 |
+
--sampling_dir "./ckpts/CIFAR_2_rectified_flow_100000edm_flip_warmup_300000_15m.pth" \
|
| 26 |
+
--config.eval.batch_size 64 \
|
| 27 |
+
--config.model.nf 96 --config.model.num_res_blocks 2 --config.data.image_size 32 --config.model.ch_mult '(1, 2, 2)'
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
python ./image_sampling.py \
|
| 32 |
+
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \
|
| 33 |
+
--sampling_dir "./ckpts/CIFAR_2_rectified_flow_100000edm_flip_warmup_300000_7m.pth" \
|
| 34 |
+
--config.eval.batch_size 64 \
|
| 35 |
+
--config.model.nf 64 --config.model.num_res_blocks 2 --config.data.image_size 32 --config.model.ch_mult '(1, 2, 2)'
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
```bash
|
| 39 |
+
python ./image_sampling.py \
|
| 40 |
+
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \
|
| 41 |
+
--sampling_dir "./ckpts/CIFAR_2_rectified_flow_100000edm_flip_warmup_300000_3m.pth" \
|
| 42 |
+
--config.eval.batch_size 64 \
|
| 43 |
+
--config.model.nf 64 --config.model.num_res_blocks 1 --config.data.image_size 32 --config.model.ch_mult '(1, 1, 2)'
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
python ./image_sampling.py \
|
| 48 |
+
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \
|
| 49 |
+
--sampling_dir "./ckpts/CIFAR_distill_2_rectified_flow_500000edm_lpips_use_teacher_15m.pth" \
|
| 50 |
+
--config.eval.batch_size 64 \
|
| 51 |
+
--config.model.nf 96 --config.model.num_res_blocks 2 --config.data.image_size 32 --config.model.ch_mult '(1, 2, 2)'
|
| 52 |
+
|
| 53 |
+
```bash
|
| 54 |
+
python ./image_sampling.py \
|
| 55 |
+
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \
|
| 56 |
+
--sampling_dir "./ckpts/CIFAR_distill_2_rectified_flow_500000edm_lpips_use_teacher_7m.pth" \
|
| 57 |
+
--config.eval.batch_size 64 \
|
| 58 |
+
--config.model.nf 64 --config.model.num_res_blocks 2 --config.data.image_size 32 --config.model.ch_mult '(1, 2, 2)'
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
########################## ImageNet 64 ##########################
|
| 64 |
+
```bash
|
| 65 |
+
python ./image_sampling.py \
|
| 66 |
+
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \
|
| 67 |
+
--sampling_dir "./ckpts/ImageNet_2_rectified_flow_400000edm_flip_warmup_300000_44m.pth" \
|
| 68 |
+
--config.eval.batch_size 64 \
|
| 69 |
+
--config.model.name DhariwalUNet --config.model.nf 128 --config.model.num_res_blocks 2 --config.model.ch_mult '(1, 2, 2, 2)' --config.data.num_classes 1000 --config.data.image_size 64 --config.model.attn_resolutions '32, 16'
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
```bash
|
| 73 |
+
python ./image_sampling.py \
|
| 74 |
+
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \
|
| 75 |
+
--sampling_dir "./ckpts/ImageNet_distill_2_rectified_flow_500000edm_lpips_use_teacher_44m.pth" \
|
| 76 |
+
--config.eval.batch_size 64 \
|
| 77 |
+
--config.model.name DhariwalUNet --config.model.nf 128 --config.model.num_res_blocks 2 --config.model.ch_mult '(1, 2, 2, 2)' --config.data.num_classes 1000 --config.data.image_size 64 --config.model.attn_resolutions '32, 16'
|
| 78 |
+
```
|