-
Source code for "Run-Sort-ReRun: Escaping Batch Size Limitations in Sliced Wasserstein Generative Models, J. Lezama, W. Chen, Q. Qiu, ICML 2021"
-
This repository contains PyTorch source code to run the toy example in Figure 1 of the paper and CIFAR-10 results in Tables 1 and 2 and Figure 3.
-
Toy Example (Figure 1):
- run
rsr_toy.py
- optionally, set
large_batch_size
to 4 to simulate Wasserstein distance on 4 samples (3rd subfigure)
- optionally, set
- run
-
CIFAR10 Example:
-
StyleGAN2 Example:
- Based on github repos:
rosinality/stylegan2-pytorch
(included) - Download converted pretrained StyleGAN2 baseline from this link. (It can also be obtained following the instruction of
rosinality/stylegan2-pytorch
) - Download LSUN church using this link, and place it at
stylegan/.data/church/
- Download the stats of LSUN church from this link
- Execute
run.sh
orpython rsr-features.py
for training (insidestylegan
) - StyleGAN2 model fine-tuned with RunSort-ReRun available at this link, place it at
stylegan/weights/
- Based on github repos:
-
Notifications
You must be signed in to change notification settings - Fork 0
jlezama/RSR
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Run-Sort-ReRun algorithm, ICML 2021
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published