Skip to content

Commit d337386

Browse files
Change links back
1 parent f808665 commit d337386

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ This is a PyTorch implementation of normalizing flows. Many popular flow archite
1313
see the [list below](#implemented-flows). The package can be easily [installed via pip](#installation).
1414
The basic usage is described [here](#usage), and a [full documentation](https://vincentstimper.github.io/normalizing-flows/)
1515
is available as well. There are several sample use cases implemented in the
16-
[`examples` folder](examples),
17-
including [Glow](examples/glow.ipynb),
18-
a [VAE](examples/vae.py), and
19-
a [Residual Flow](examples/residual.ipynb).
16+
[`examples` folder](https://github.com/VincentStimper/normalizing-flows/blob/master/examples),
17+
including [Glow](https://github.com/VincentStimper/normalizing-flows/blob/master/examples/glow.ipynb),
18+
a [VAE](https://github.com/VincentStimper/normalizing-flows/blob/master/examples/vae.py), and
19+
a [Residual Flow](https://github.com/VincentStimper/normalizing-flows/blob/master/examples/residual.ipynb).
2020

2121

2222
## Implemented Flows
@@ -66,9 +66,9 @@ pip install -r requirements_examples.txt
6666
<a href="https://colab.research.google.com/github/VincentStimper/normalizing-flows/blob/master/example/real_nvp_colab.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
6767

6868
A normalizing flow consists of a base distribution, defined in
69-
[`nf.distributions.base`](normflows/distributions/base.py),
69+
[`nf.distributions.base`](https://github.com/VincentStimper/normalizing-flows/blob/master/normflows/distributions/base.py),
7070
and a list of flows, given in
71-
[`nf.flows`](normflows/flows).
71+
[`nf.flows`](https://github.com/VincentStimper/normalizing-flows/blob/master/normflows/flows).
7272
Let's assume our target is a 2D distribution. We pick a diagonal Gaussian
7373
base distribution, which is the most popular choice. Our flow shall be a
7474
[Real NVP model](https://openreview.net/forum?id=HkpbnH9lx) and, therefore, we need
@@ -96,10 +96,10 @@ for i in range(num_layers):
9696
```
9797

9898
Once they are set up, we can define a
99-
[`nf.NormalizingFlow`](normflows/core.py#L9)
99+
[`nf.NormalizingFlow`](https://github.com/VincentStimper/normalizing-flows/blob/master/normflows/core.py#L9)
100100
model. If the target density is available, it can be added to the model
101101
to be used during training. Sample target distributions are given in
102-
[`nf.distributions.target`](normflows/distributions/target.py).
102+
[`nf.distributions.target`](https://github.com/VincentStimper/normalizing-flows/blob/master/normflows/distributions/target.py).
103103

104104
```python
105105
# If the target density is not given
@@ -131,15 +131,15 @@ which can directly be opened in
131131
[Colab](https://colab.research.google.com/github/VincentStimper/normalizing-flows/blob/master/example/real_nvp_colab.ipynb).
132132
There, we apply a Real NVP model to a bimodal target distribution and obtain the following results.
133133

134-
![2D target distribution and Real NVP model](figures/real_nvp.png)
134+
![2D target distribution and Real NVP model](https://github.com/VincentStimper/normalizing-flows/blob/master/figures/real_nvp.png)
135135

136-
In [another example](examples/paper_example_nsf.ipynb), we apply a Neural Spline Flow model to a
136+
In [another example](https://github.com/VincentStimper/normalizing-flows/blob/master/examples/paper_example_nsf.ipynb), we apply a Neural Spline Flow model to a
137137
distribution defined on a cylinder. The resulting density is visualized below.
138138

139-
![Neural Spline Flow applied to target distribution on a cylinder](figures/nsf_cylinder.png)
139+
![Neural Spline Flow applied to target distribution on a cylinder](https://github.com/VincentStimper/normalizing-flows/blob/master/figures/nsf_cylinder.png)
140140

141141
For more illustrative examples of how to use the package see the
142-
[`examples`](examples)
142+
[`examples`](https://github.com/VincentStimper/normalizing-flows/blob/master/examples)
143143
directory. More advanced experiments can be done with the scripts listed in the
144144
[repository about resampled base distributions](https://github.com/VincentStimper/resampled-base-flows),
145145
see its [`experiments`](https://github.com/VincentStimper/resampled-base-flows/tree/master/experiments)

0 commit comments

Comments
 (0)