Skip to content
Code from paper "On Relativistic f-divergences" (http://arxiv.org/abs/1901.02474)
Python Shell R
Branch: master
Clone or download
Latest commit ccb4f85 Mar 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GAN.py Update GAN.py Feb 10, 2019
README.md Update README.md Jan 14, 2019
bias_plots.R Add files via upload Jan 10, 2019
create_FID_stats.py Add files via upload Jan 10, 2019
experiments.sh Add files via upload Mar 3, 2019
fid.py Add files via upload Jan 10, 2019
fid_new.py Add files via upload Jan 10, 2019
fid_script.sh Add files via upload Jan 10, 2019
preprocess_cat_dataset.py Add files via upload Jan 10, 2019
pytorch_visualize.py Add files via upload Jan 10, 2019
setting_up_script.sh Add files via upload Jan 10, 2019

README.md

Relativistic f-divergences

Code to replicate all analyses from the paper On Relativistic f-divergences

Discussion at https://ajolicoeur.wordpress.com/relativistic-f-divergences.

This basically the same code as https://github.com/AlexiaJM/RelativisticGAN, but with more options.

To replicate analyses from the paper

Needed

To do beforehand

  • Change all folders locations in fid_script.sh, experiments.sh, and GAN.py
  • Make sure that there are existing folders at the locations you used
  • Open an run each necessary lines of setting_up_script.sh in same folder as preprocess_cat_dataset.py (It will automatically download the cat datasets, if this doesn't work well download it from http://academictorrents.com/details/c501571c29d16d7f41d159d699d0e7fb37092cbd)

To run

  • To run models
    • Use GAN.py
  • To replicate the paper
    • Open experiments.sh and run the lines you want

Citation

If you find this code useful please cite us in your work.

Paper introducing Relativistic GANs (https://github.com/AlexiaJM/RelativisticGAN):

@article{jolicoeur2018relativistic,
  title={The relativistic discriminator: a key element missing from standard GAN},
  author={Jolicoeur-Martineau, Alexia},
  journal={arXiv preprint arXiv:1807.00734},
  year={2018}
}

Paper providing the mathematical fundation for Relativistic GANs (https://github.com/AlexiaJM/relativistic-f-divergences)

@article{jolicoeur2018rfdiv,
  title={On Relativistic f-Divergences},
  author={Jolicoeur-Martineau, Alexia},
  journal={arXiv preprint arXiv:1901.02474},
  year={2019}
}
You can’t perform that action at this time.