Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zgbkdlm committed May 22, 2024
1 parent f5de9f2 commit 9802794
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.9 ]
python-version: [ '3.10' ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ This repository is concerned with Markov chain Monte Carlo (MCMC) method for con
see, https://arxiv.org/placeholder.
More specifically, our core contributions are as follows.

1. We develop a new and efficient particle Gibbs sampler for conditioning diffusion models.
1. We develop a new and efficient particle Gibbs sampler, and a pseudo-marginal sampler for conditioning diffusion models.
2. The proposed method is not only consistent but is also asymptotically exact, even when 1) using a finite number of particles, and 2) no access to the reference distribution.

To quickly see what our method can do while others cannot, please check the two animations below.
To quickly see what our method can do while others cannot, please check the two animations below
(you may wait for seconds for the animations to start).

<img src="./docs/sb-imgs-anime-2.gif" style="width: 80%; height: auto; display: block; margin-left: auto; margin-right: auto">
<img src="./docs/sb-imgs-anime-9.gif" style="width: 80%; height: auto; display: block; margin-left: auto; margin-right: auto">
Expand Down Expand Up @@ -37,7 +38,8 @@ The scripts in `./experiments` are explained as follows.
4. `./experiments/sb_imgs`. This folder is concerned with the Schrödinger bridge experiments on MNIST super-resolution.
5. `./experiments/toy`. This folder is concerned with the Gaussian synthetic experiments.

You can download the CelebA-HQ dataset as per the instruction in https://github.com/Algolzw/daclip-uir.
You can download the CelebA-HQ dataset as per the instruction in https://github.com/Algolzw/daclip-uir, and the scripts
in `./experiments/datasets`.

After you have run all the experiments, results will be saved in their corresponding directories.
Then, simply run any file in `./experiments/tabulators` to produce the tables and figures in our paper.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ def load_batch(filename):
train_data = train_data.astype('float32') / 255.
test_data = test_data.astype('float32') / 255.

np.savez('./cifar10.npz', train_data=train_data, test_data=test_data)
np.savez('cifar10.npz', train_data=train_data, test_data=test_data)
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_gibbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ def gibbs_kernel(key_, x0_, y0_, us_star_, bs_star_):

x0s = x0s[burnin:]

npt.assert_allclose(jnp.mean(x0s), true_posterior_mean, rtol=1e-2)
npt.assert_allclose(jnp.mean(x0s), true_posterior_mean, rtol=5e-2)
npt.assert_allclose(jnp.var(x0s), true_posterior_cov, rtol=2e-2)

0 comments on commit 9802794

Please sign in to comment.