Link to paper (arXiv): Density Estimation using Real NVP
Some code adopted from Chris Chute's repository: Real NVP - Chris Chute
-
In order to run the code just open a terminal and type:
-
python main.py
-
Note that before you run it, you need to open the main.py file and insert the save path.
-
If you don't have CUDA, you might want to remove the ".cuda()" methods etc
-
Even if you DO have an Nvidia GPU, it might not support Automatic Mixed Precision (AMP). In that case, disable autocasting and associated Grad Scaler by setting:
-
use_amp = False
at the top of themain.py
file. -
Cleaner code coming soon.