Skip to content

Commit 4c31bbb

Browse files
committed
bump pre-commit hooks and update links to diagrams repo
1 parent 97732d7 commit 4c31bbb

7 files changed

Lines changed: 65 additions & 70 deletions

File tree

.github/workflows/generate-readme.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Check out repo
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818
with:
1919
ref: ${{ github.head_ref }}
2020

2121
- name: Set up python
22-
uses: actions/setup-python@v5
22+
uses: actions/setup-python@v6
2323
with:
2424
python-version: "3.11"
2525

.github/workflows/link-check.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ on:
77
branches: [main]
88

99
jobs:
10-
markdown-link-check:
10+
link-check:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out repo
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515

16-
- name: Run markdown link check
17-
uses: gaurav-nelson/github-action-markdown-link-check@v1
18-
# docs at https://git.io/JBaKu
16+
- name: Discover broken links
17+
uses: lycheeverse/lychee-action@v2
1918
with:
20-
config-file: .github/workflows/link-check-config.json
21-
max-depth: 1 # only check readme.md
19+
args: --accept 100..=103,200..=299,403,429,500 -- ./**/*.{md,py,ipynb}

.github/workflows/lint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
prek:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out repo
14+
uses: actions/checkout@v6
15+
16+
- name: Run prek
17+
uses: j178/prek-action@v2

.pre-commit-config.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
ci:
2-
autoupdate_schedule: quarterly
3-
4-
default_stages: [commit]
5-
61
default_install_hook_types: [pre-commit, commit-msg]
72

83
repos:
94
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: v0.6.7
5+
rev: v0.15.7
116
hooks:
127
- id: ruff
138
args:
@@ -20,21 +15,20 @@ repos:
2015
- py312
2116
- id: ruff-format
2217

23-
- repo: https://github.com/pre-commit/pre-commit-hooks
24-
rev: v4.6.0
18+
- repo: builtin
2519
hooks:
20+
- id: check-added-large-files
2621
- id: check-case-conflict
2722
- id: check-symlinks
2823
- id: check-yaml
2924
- id: destroyed-symlinks
3025
- id: end-of-file-fixer
3126
exclude_types: [svg]
32-
- id: forbid-new-submodules
3327
- id: mixed-line-ending
3428
- id: trailing-whitespace
3529

3630
- repo: https://github.com/igorshubovych/markdownlint-cli
37-
rev: v0.42.0
31+
rev: v0.48.0
3832
hooks:
3933
- id: markdownlint
4034
# MD013: line length
@@ -43,14 +37,14 @@ repos:
4337
args: [--disable, MD013, MD033, MD041, "--"]
4438

4539
- repo: https://github.com/codespell-project/codespell
46-
rev: v2.3.0
40+
rev: v2.4.2
4741
hooks:
4842
- id: codespell
49-
stages: [commit, commit-msg]
43+
stages: [pre-commit, commit-msg]
5044
args: [--ignore-words-list, gool, --check-filenames]
5145

5246
- repo: https://github.com/google/yamlfmt
53-
rev: v0.13.0
47+
rev: v0.21.0
5448
hooks:
5549
- id: yamlfmt
5650
args: [-formatter, retain_line_breaks=true]

data/packages.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
- title: FrEIA
22
date: 2018-09-07
3-
url: https://github.com/VLL-HD/FrEIA
3+
url: https://github.com/vislearn/FrEIA
44
authors:
55
- name: VLL Heidelberg
6-
url: https://hci.iwr.uni-heidelberg.de/vislearn
6+
url: https://github.com/vislearn
77
lang: PyTorch
88
description: The Framework for Easily Invertible Architectures (FrEIA) is based on RNVP flows. Easy to setup, it allows to define complex Invertible Neural Networks (INNs) from simple invertible building blocks.
99

@@ -42,15 +42,6 @@
4242
lang: JAX
4343
description: A library that offers normalizing flows using JAX as the backend. Has some SOTA methods. They also feature a surjective flow via quantization.
4444

45-
- title: jax-flows
46-
date: 2020-03-23
47-
url: https://github.com/ChrisWaites/jax-flows
48-
authors:
49-
- name: Chris Waites
50-
url: https://chriswaites.com
51-
lang: JAX
52-
description: Another library that has normalizing flows using JAX as the backend. Has some of the SOTA methods.
53-
5445
- title: Distrax
5546
date: 2021-04-12
5647
url: https://github.com/deepmind/distrax
@@ -133,8 +124,8 @@
133124
authors:
134125
- name: Kaze Wong
135126
url: https://www.kaze-wong.com/
127+
docs: https://pypi.org/project/flowMC
136128
lang: JAX
137-
docs: https://flowmc.readthedocs.io/en/main/
138129
description: Normalizing-flow enhanced sampling package for probabilistic inference
139130

140131
- title: GWKokab

data/publications.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
3030
A popular and efficient way to make flows autoregressive is to construct them from MADE nets.
3131
32-
<a href="https://github.com/janosh/tikz/tree/main/assets/made">
32+
<a href="https://github.com/janosh/diagrams/tree/main/assets/made">
3333
<picture>
34-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/tikz/main/assets/made/made-white.svg">
35-
<img alt="Masked Autoencoder for Distribution Estimation" src="https://raw.githubusercontent.com/janosh/tikz/main/assets/made/made.svg">
34+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/diagrams/main/assets/made/made-white.svg">
35+
<img alt="Masked Autoencoder for Distribution Estimation" src="https://raw.githubusercontent.com/janosh/diagrams/main/assets/made/made.svg">
3636
</picture>
3737
</a>
3838
@@ -54,10 +54,10 @@
5454
description: |
5555
They introduce the affine coupling layer (RNVP), a major improvement in terms of flexibility over the additive coupling layer (NICE) with unit Jacobian while keeping a single-pass forward and inverse transformation for fast sampling and density estimation, respectively.
5656
57-
<a href="https://github.com/janosh/tikz/tree/main/assets/rnvp">
57+
<a href="https://github.com/janosh/diagrams/tree/main/assets/rnvp-affine-coupling-layer">
5858
<picture>
59-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/tikz/main/assets/rnvp/rnvp-white.svg">
60-
<img alt="Diagram of real-valued non-volume preserving (RNVP) coupling layer" src="https://raw.githubusercontent.com/janosh/tikz/main/assets/rnvp/rnvp.svg">
59+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/diagrams/main/assets/rnvp-affine-coupling-layer/rnvp-affine-coupling-layer-white.svg">
60+
<img alt="Diagram of real-valued non-volume preserving (RNVP) coupling layer" src="https://raw.githubusercontent.com/janosh/diagrams/main/assets/rnvp-affine-coupling-layer/rnvp-affine-coupling-layer.svg">
6161
</picture>
6262
</a>
6363
@@ -92,10 +92,10 @@
9292
description: |
9393
Introduces MAF, a stack of autoregressive models forming a normalizing flow suitable for fast density estimation but slow at sampling. Analogous to Inverse Autoregressive Flow (IAF) except the forward and inverse passes are exchanged. Generalization of RNVP.
9494
95-
<a href="https://github.com/janosh/tikz/tree/main/assets/maf">
95+
<a href="https://github.com/janosh/diagrams/tree/main/assets/masked-autoregressive-flow">
9696
<picture>
97-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/tikz/main/assets/maf/maf-white.svg">
98-
<img alt="Diagram of the slow (sequential) forward pass of a Masked Autoregressive Flow (MAF) layer" src="https://raw.githubusercontent.com/janosh/tikz/main/assets/maf/maf.svg">
97+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/diagrams/main/assets/masked-autoregressive-flow/masked-autoregressive-flow-white.svg">
98+
<img alt="Diagram of the slow (sequential) forward pass of a Masked Autoregressive Flow (MAF) layer" src="https://raw.githubusercontent.com/janosh/diagrams/main/assets/masked-autoregressive-flow/masked-autoregressive-flow.svg">
9999
</picture>
100100
</a>
101101
@@ -156,7 +156,7 @@
156156
- name: Jongyoon Song
157157
- name: Jaehyeon Kim
158158
- name: Sungroh Yoon
159-
description: A flow-based generative model for raw audo synthesis.
159+
description: A flow-based generative model for raw audio synthesis.
160160
repo: https://github.com/ksw0306/FloWaveNet
161161

162162
- title: Block Neural Autoregressive Flow
@@ -251,7 +251,7 @@
251251
- name: Carsten Rother
252252
- name: Ullrich Köthe
253253
description: They introduce a class of conditional normalizing flows with an information bottleneck objective.
254-
repo: https://github.com/VLL-HD/exact_information_bottleneck
254+
repo: https://github.com/vislearn/IB-INN
255255

256256
- title: Stochastic Normalizing Flows (SNF)
257257
url: https://arxiv.org/abs/2002.06707

readme.md

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
A list of awesome resources for understanding and applying normalizing flows (NF): a relatively simple yet powerful new tool in statistics for constructing expressive probability distributions from simple base distributions using a chain (flow) of trainable smooth bijective transformations (diffeomorphisms).
1515

16-
<a href="https://github.com/janosh/tikz/tree/main/assets/normalizing-flow">
16+
<a href="https://github.com/janosh/diagrams/tree/main/assets/normalizing-flow">
1717
<picture>
18-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/tikz/main/assets/normalizing-flow/normalizing-flow-white.svg">
19-
<img alt="Diagram of the slow (sequential) forward pass of a Masked Autoregressive Flow (MAF) layer" src="https://raw.githubusercontent.com/janosh/tikz/main/assets/normalizing-flow/normalizing-flow.svg">
18+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/diagrams/main/assets/normalizing-flow/normalizing-flow-white.svg">
19+
<img alt="Diagram of the slow (sequential) forward pass of a Masked Autoregressive Flow (MAF) layer" src="https://raw.githubusercontent.com/janosh/diagrams/main/assets/normalizing-flow/normalizing-flow.svg">
2020
</picture>
2121
</a>
2222

23-
<sup>_Figure inspired by [Lilian Weng](https://lilianweng.github.io/lil-log/2018/10/13/flow-based-deep-generative-models). Created in TikZ. [View source](https://github.com/janosh/tikz/tree/main/assets/normalizing-flow)._</sup>
23+
<sup>_Figure inspired by [Lilian Weng](https://lilianweng.github.io/lil-log/2018/10/13/flow-based-deep-generative-models). Created in [CeTZ](https://cetz-package.github.io). [View source](https://github.com/janosh/diagrams/blob/main/assets/normalizing-flow/normalizing-flow.typ)._</sup>
2424

2525
<br>
2626

@@ -30,7 +30,7 @@ A list of awesome resources for understanding and applying normalizing flows (NF
3030
1. [📝 Publications (60)](#-publications-60)
3131
1. [🛠️ Applications (8)](#️-applications-8)
3232
1. [📺 Videos (8)](#-videos-8)
33-
1. [📦 Packages (15)](#-packages-15)
33+
1. [📦 Packages (14)](#-packages-14)
3434
1. [PyTorch Packages](#-pytorch-packages)
3535
1. [TensorFlow Packages](#-tensorflow-packages)
3636
1. [JAX Packages](#-jax-packages)
@@ -129,7 +129,7 @@ A list of awesome resources for understanding and applying normalizing flows (NF
129129
Introduces SNF, an arbitrary sequence of deterministic invertible functions (the flow) and stochastic processes such as MCMC or Langevin Dynamics. The aim is to increase expressiveness of the chosen deterministic invertible function, while the trainable flow improves sampling efficiency over pure MCMC [[Tweet](https://twitter.com/FrankNoeBerlin/status/1229734899034329103)).]
130130

131131
1. 2020-01-17 - [Training Normalizing Flows with the Information Bottleneck for Competitive Generative Classification](https://arxiv.org/abs/2001.06448) by Ardizzone, Mackowiak et al.<br>
132-
They introduce a class of conditional normalizing flows with an information bottleneck objective. [[Code](https://github.com/VLL-HD/exact_information_bottleneck)]
132+
They introduce a class of conditional normalizing flows with an information bottleneck objective. [[Code](https://github.com/vislearn/IB-INN)]
133133

134134
1. 2020-01-15 - [Invertible Generative Modeling using Linear Rational Splines](https://arxiv.org/abs/2001.05168) by Dolatabadi, Erfani et al.<br>
135135
A successor to the Neural spline flows which features an easy-to-compute inverse.
@@ -183,7 +183,7 @@ A list of awesome resources for understanding and applying normalizing flows (NF
183183
Introduces autoregressive-like convolutional layers that operate on the channel **and** spatial axes. This improved upon the performance of image datasets compared to the standard 1x1 Convolutions. The trade-off is that the inverse operator is quite expensive however the authors provide a fast C++ implementation. [[Code](https://github.com/ehoogeboom/emerging)]
184184

185185
1. 2018-11-06 - [FloWaveNet : A Generative Flow for Raw Audio](https://arxiv.org/abs/1811.02155) by Kim, Lee et al.<br>
186-
A flow-based generative model for raw audo synthesis. [[Code](https://github.com/ksw0306/FloWaveNet)]
186+
A flow-based generative model for raw audio synthesis. [[Code](https://github.com/ksw0306/FloWaveNet)]
187187

188188
1. 2018-10-02 - [FFJORD: Free-form Continuous Dynamics for Scalable Reversible Generative Models](https://arxiv.org/abs/1810.01367) by Grathwohl, Chen et al.<br>
189189
Uses Neural ODEs as a solver to produce continuous-time normalizing flows (CNF).
@@ -206,10 +206,10 @@ A list of awesome resources for understanding and applying normalizing flows (NF
206206
1. 2017-05-19 - [Masked Autoregressive Flow for Density Estimation](https://arxiv.org/abs/1705.07057) by Papamakarios, Pavlakou et al.<br>
207207
Introduces MAF, a stack of autoregressive models forming a normalizing flow suitable for fast density estimation but slow at sampling. Analogous to Inverse Autoregressive Flow (IAF) except the forward and inverse passes are exchanged. Generalization of RNVP.
208208

209-
<a href="https://github.com/janosh/tikz/tree/main/assets/maf">
209+
<a href="https://github.com/janosh/diagrams/tree/main/assets/masked-autoregressive-flow">
210210
<picture>
211-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/tikz/main/assets/maf/maf-white.svg">
212-
<img alt="Diagram of the slow (sequential) forward pass of a Masked Autoregressive Flow (MAF) layer" src="https://raw.githubusercontent.com/janosh/tikz/main/assets/maf/maf.svg">
211+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/diagrams/main/assets/masked-autoregressive-flow/masked-autoregressive-flow-white.svg">
212+
<img alt="Diagram of the slow (sequential) forward pass of a Masked Autoregressive Flow (MAF) layer" src="https://raw.githubusercontent.com/janosh/diagrams/main/assets/masked-autoregressive-flow/masked-autoregressive-flow.svg">
213213
</picture>
214214
</a>
215215

@@ -222,10 +222,10 @@ A list of awesome resources for understanding and applying normalizing flows (NF
222222
1. 2016-05-27 - [Density estimation using Real NVP](https://arxiv.org/abs/1605.08803) by Dinh, Sohl-Dickstein et al.<br>
223223
They introduce the affine coupling layer (RNVP), a major improvement in terms of flexibility over the additive coupling layer (NICE) with unit Jacobian while keeping a single-pass forward and inverse transformation for fast sampling and density estimation, respectively.
224224

225-
<a href="https://github.com/janosh/tikz/tree/main/assets/rnvp">
225+
<a href="https://github.com/janosh/diagrams/tree/main/assets/rnvp-affine-coupling-layer">
226226
<picture>
227-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/tikz/main/assets/rnvp/rnvp-white.svg">
228-
<img alt="Diagram of real-valued non-volume preserving (RNVP) coupling layer" src="https://raw.githubusercontent.com/janosh/tikz/main/assets/rnvp/rnvp.svg">
227+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/diagrams/main/assets/rnvp-affine-coupling-layer/rnvp-affine-coupling-layer-white.svg">
228+
<img alt="Diagram of real-valued non-volume preserving (RNVP) coupling layer" src="https://raw.githubusercontent.com/janosh/diagrams/main/assets/rnvp-affine-coupling-layer/rnvp-affine-coupling-layer.svg">
229229
</picture>
230230
</a>
231231

@@ -237,10 +237,10 @@ A list of awesome resources for understanding and applying normalizing flows (NF
237237

238238
A popular and efficient way to make flows autoregressive is to construct them from MADE nets.
239239

240-
<a href="https://github.com/janosh/tikz/tree/main/assets/made">
240+
<a href="https://github.com/janosh/diagrams/tree/main/assets/made">
241241
<picture>
242-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/tikz/main/assets/made/made-white.svg">
243-
<img alt="Masked Autoencoder for Distribution Estimation" src="https://raw.githubusercontent.com/janosh/tikz/main/assets/made/made.svg">
242+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/janosh/diagrams/main/assets/made/made-white.svg">
243+
<img alt="Masked Autoencoder for Distribution Estimation" src="https://raw.githubusercontent.com/janosh/diagrams/main/assets/made/made.svg">
244244
</picture>
245245
</a>
246246

@@ -308,7 +308,7 @@ A list of awesome resources for understanding and applying normalizing flows (NF
308308

309309
<br>
310310

311-
## 📦 Packages <small>(15)</small>
311+
## 📦 Packages <small>(14)</small>
312312

313313
<br>
314314

@@ -341,9 +341,9 @@ Zuko is used in [LAMPE](https://github.com/francois-rozet/lampe) to enable Likel
341341
<img src="https://img.shields.io/github/stars/VincentStimper/normalizing-flows" alt="GitHub repo stars" valign="middle" /><br>
342342
The library provides most of the common normalizing flow architectures. It also includes stochastic layers, flows on tori and spheres, and other tools that are particularly useful for applications to the physical sciences.
343343

344-
1. 2018-09-07 - [FrEIA](https://github.com/VLL-HD/FrEIA) by [VLL Heidelberg](https://hci.iwr.uni-heidelberg.de/vislearn)
344+
1. 2018-09-07 - [FrEIA](https://github.com/vislearn/FrEIA) by [VLL Heidelberg](https://github.com/vislearn)
345345
&ensp;
346-
<img src="https://img.shields.io/github/stars/VLL-HD/FrEIA" alt="GitHub repo stars" valign="middle" /><br>
346+
<img src="https://img.shields.io/github/stars/vislearn/FrEIA" alt="GitHub repo stars" valign="middle" /><br>
347347
The Framework for Easily Invertible Architectures (FrEIA) is based on RNVP flows. Easy to setup, it allows to define complex Invertible Neural Networks (INNs) from simple invertible building blocks.
348348

349349
<br>
@@ -367,7 +367,7 @@ Zuko is used in [LAMPE](https://github.com/francois-rozet/lampe) to enable Likel
367367
1. 2022-06-17 - [flowMC](https://github.com/kazewong/flowMC) by [Kaze Wong](https://www.kaze-wong.com/)
368368
&ensp;
369369
<img src="https://img.shields.io/github/stars/kazewong/flowMC" alt="GitHub repo stars" valign="middle" /><br>
370-
Normalizing-flow enhanced sampling package for probabilistic inference [[Docs](https://flowmc.readthedocs.io/en/main/)]
370+
Normalizing-flow enhanced sampling package for probabilistic inference [[Docs](https://pypi.org/project/flowMC)]
371371

372372
1. 2021-06-17 - [pzflow](https://github.com/jfcrenshaw/pzflow) by [John Franklin Crenshaw](https://jfcrenshaw.github.io)
373373
&ensp;
@@ -379,11 +379,6 @@ Zuko is used in [LAMPE](https://github.com/francois-rozet/lampe) to enable Likel
379379
<img src="https://img.shields.io/github/stars/deepmind/distrax" alt="GitHub repo stars" valign="middle" /><br>
380380
Distrax is a lightweight library of probability distributions and bijectors. It acts as a JAX-native re-implementation of a subset of TensorFlow Probability (TFP), with some new features and emphasis on extensibility.
381381

382-
1. 2020-03-23 - [jax-flows](https://github.com/ChrisWaites/jax-flows) by [Chris Waites](https://chriswaites.com)
383-
&ensp;
384-
<img src="https://img.shields.io/github/stars/ChrisWaites/jax-flows" alt="GitHub repo stars" valign="middle" /><br>
385-
Another library that has normalizing flows using JAX as the backend. Has some of the SOTA methods.
386-
387382
1. 2020-03-09 - [NuX](https://github.com/Information-Fusion-Lab-Umass/NuX) by Information Fusion Labs (UMass)
388383
&ensp;
389384
<img src="https://img.shields.io/github/stars/Information-Fusion-Lab-Umass/NuX" alt="GitHub repo stars" valign="middle" /><br>

0 commit comments

Comments
 (0)