This repository contains implementations of Normalizing Flows in PyTorch. The implementations are heavily inspired by karpathy/pytorch-normalizing-flows.
Run the following command to install the required dependencies:
uv sync
source .venv/bin/activate
Train the NICE model on the specified dataset for 10,000 steps by default:
python train_nice.py --dataset moons
Train the RealNVP model on the specified dataset for 10,000 steps by default:
python train_real_nvp.py --dataset moons