Skip to content

keishihara/normalizing-flows

Repository files navigation

Normalizing Flows in PyTorch

This repository contains implementations of Normalizing Flows in PyTorch. The implementations are heavily inspired by karpathy/pytorch-normalizing-flows.

Getting Started

Run the following command to install the required dependencies:

uv sync
source .venv/bin/activate

NICE [Dinh+ 2014]

Train the NICE model on the specified dataset for 10,000 steps by default:

python train_nice.py --dataset moons

Moons Dataset

NICE_moons_step10000

Gaussian Mixture Dataset

NICE_mixture_step10000

RealNVP [Dinh+ 2016]

Train the RealNVP model on the specified dataset for 10,000 steps by default:

python train_real_nvp.py --dataset moons

Moons Dataset

RealNVP_moons_step10000

Gaussian Mixture Dataset

RealNVP_mixture_step10000

References

About

Pytorch implementation of Normalizing Flows

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages