|
--- |
|
license: apache-2.0 |
|
--- |
|
|
|
## Checkpoints for SlimFlow |
|
|
|
```bash |
|
cd SlimFlow |
|
huggingface-cli download Yuanzhi/SlimFlow --local-dir ckpts |
|
``` |
|
|
|
|
|
########################## CIFAR-10 ########################## |
|
```bash |
|
python ./image_sampling.py \ |
|
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \ |
|
--sampling_dir "./ckpts/CIFAR_2_rectified_flow_100000edm_flip_warmup_300000_28m.pth" \ |
|
--config.eval.batch_size 64 \ |
|
--config.model.nf 128 --config.model.num_res_blocks 2 --config.data.image_size 32 --config.model.ch_mult '(1, 2, 2)' |
|
``` |
|
|
|
```bash |
|
python ./image_sampling.py \ |
|
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \ |
|
--sampling_dir "./ckpts/CIFAR_2_rectified_flow_100000edm_flip_warmup_300000_15m.pth" \ |
|
--config.eval.batch_size 64 \ |
|
--config.model.nf 96 --config.model.num_res_blocks 2 --config.data.image_size 32 --config.model.ch_mult '(1, 2, 2)' |
|
``` |
|
|
|
```bash |
|
python ./image_sampling.py \ |
|
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \ |
|
--sampling_dir "./ckpts/CIFAR_2_rectified_flow_100000edm_flip_warmup_300000_7m.pth" \ |
|
--config.eval.batch_size 64 \ |
|
--config.model.nf 64 --config.model.num_res_blocks 2 --config.data.image_size 32 --config.model.ch_mult '(1, 2, 2)' |
|
``` |
|
|
|
```bash |
|
python ./image_sampling.py \ |
|
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \ |
|
--sampling_dir "./ckpts/CIFAR_2_rectified_flow_100000edm_flip_warmup_300000_3m.pth" \ |
|
--config.eval.batch_size 64 \ |
|
--config.model.nf 64 --config.model.num_res_blocks 1 --config.data.image_size 32 --config.model.ch_mult '(1, 1, 2)' |
|
``` |
|
|
|
```bash |
|
python ./image_sampling.py \ |
|
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \ |
|
--sampling_dir "./ckpts/CIFAR_distill_2_rectified_flow_500000edm_lpips_use_teacher_15m.pth" \ |
|
--config.eval.batch_size 64 \ |
|
--config.model.nf 96 --config.model.num_res_blocks 2 --config.data.image_size 32 --config.model.ch_mult '(1, 2, 2)' |
|
|
|
```bash |
|
python ./image_sampling.py \ |
|
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \ |
|
--sampling_dir "./ckpts/CIFAR_distill_2_rectified_flow_500000edm_lpips_use_teacher_7m.pth" \ |
|
--config.eval.batch_size 64 \ |
|
--config.model.nf 64 --config.model.num_res_blocks 2 --config.data.image_size 32 --config.model.ch_mult '(1, 2, 2)' |
|
``` |
|
|
|
|
|
|
|
########################## ImageNet 64 ########################## |
|
```bash |
|
python ./image_sampling.py \ |
|
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \ |
|
--sampling_dir "./ckpts/ImageNet_2_rectified_flow_400000edm_flip_warmup_300000_44m.pth" \ |
|
--config.eval.batch_size 64 \ |
|
--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' |
|
``` |
|
|
|
```bash |
|
python ./image_sampling.py \ |
|
--config ./configs/rectified_flow/cifar10_rf_gaussian.py \ |
|
--sampling_dir "./ckpts/ImageNet_distill_2_rectified_flow_500000edm_lpips_use_teacher_44m.pth" \ |
|
--config.eval.batch_size 64 \ |
|
--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' |
|
``` |