← 开源
ikostrikov

pytorch-flows

PyTorch implementations of algorithms for density estimation

Model DevelopmentArchitecturePython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
589
Star
75
Fork
+0
本周
7
贡献者
创建于 2018-09-01 · 更新于 2026-07-24 · 今日第 16097 名
主要开发者
README

pytorch-flows

A PyTorch implementations of Masked Autoregressive Flow and some other invertible transformations from Glow: Generative Flow with Invertible 1x1 Convolutions and Density estimation using Real NVP.

For MAF, I'm getting results similar to ones reported in the paper. GLOW requires some work.

Run

python main.py --dataset POWER

Available datasets are POWER, GAS, HEPMASS, MINIBONE and BSDS300. For the moment, I removed MNIST and CIFAR10 because I have plans to add pixel-based models later.

Datasets

The datasets are taken from the original MAF repository. Follow the instructions to get them.

Tests

Tests check invertibility, you can run them as

pytest flow_test.py