diffusion_models icon indicating copy to clipboard operation
diffusion_models copied to clipboard

A series of tutorial notebooks on denoising diffusion probabilistic models in PyTorch

Results 9 diffusion_models issues
Sort by recently updated
recently updated
newest added

I would like to know if the fourth part of this series is available now. If it is available, can you put it here or share the link with us?

Hi, I think you have an error in: ![Screenshot from 2021-05-21 13-09-18](https://user-images.githubusercontent.com/32613612/119121268-e270ac00-ba35-11eb-815b-29e6e3387dbf.png) while it should be q(x_t|x_0).

```python3 def denoising_score_matching(scorenet, samples, key, sigma=0.01): noise = jax.random.normal(key, samples.shape) perturbed_samples = samples + noise * sigma target = -noise / sigma scores = scorenet(perturbed_samples) loss = 1 / 2....

Which one's right? I guess there should be a '-' sign ![denoising score matching](https://github.com/acids-ircam/diffusion_models/assets/33099712/751bbc3f-3b32-4764-afbb-f42066f220e7)

File: diffusion_01_score.ipynb. In the section 'Denoising score matching', the $\nabla_{\tilde{\mathbf{x}}} \log q_{\sigma}(\tilde{\mathbf{x}}\mid\mathbf{x})$ should be $= -\frac{\tilde{\mathbf{x}} - \mathbf{x}}{\sigma^{2}}$ instead of $= \frac{\tilde{\mathbf{x}} - \mathbf{x}}{\sigma^{2}}$. Again, thanks for your repository, it...

In notebooks I see updates of EMA model ```def update```, where we change shallow model, but ```def ema``` method was never called. It should be called ones per N epochs...

Why do you shift alphas_prod_p in diffusion_02_model.ipynb? alphas_prod_p = torch.cat([torch.tensor([1]).float(), alphas_prod[:-1]], 0)

Thanks for the very nice tutorial. I found that you may want to use normal distribution for noise term but use "rand" instand of "randn"? In the 6-th block of...

Hello, thank you for your tutorial. It helps me a lot to understand the model. I have got a small question. Since we set the n_steps to 100, the x_seq...