Skip to content

Commit 8555ba2

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

5 files changed

Lines changed: 38 additions & 46 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}

.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/publications.yml

Lines changed: 10 additions & 10 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">
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/rnvp-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/rnvp.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/maf">
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/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/diagrams/main/assets/maf/maf.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

readme.md

Lines changed: 14 additions & 14 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

@@ -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/maf">
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/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/diagrams/main/assets/maf/maf.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">
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/rnvp-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/rnvp.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

0 commit comments

Comments
 (0)