Phil Wang
|
f0d59acdfd
|
fix sampling ddpm tqdm
|
2022-08-10 12:02:56 -07:00 |
|
Phil Wang
|
689593a579
|
add the new self conditioning technique from hintons group from bit diffusion paper
0.27.0
|
2022-08-10 10:52:07 -07:00 |
|
Phil Wang
|
eba44498d1
|
higher epsilon for fp16 in layernorm
|
2022-07-29 13:29:52 -07:00 |
|
Phil Wang
|
12f95b33d8
|
rescale values to prevent linear attention from overflowing in fp16 setting
|
2022-07-27 12:25:40 -07:00 |
|
Phil Wang
|
6b504c4ae9
|
fix accelerator prepare bug for dataloader
|
2022-07-25 08:13:46 -07:00 |
|
Phil Wang
|
37334ae824
|
fix a bug with ddim and predict x0 objective
|
2022-07-18 19:04:57 -07:00 |
|
Phil Wang
|
555566c188
|
take a gamble on cosine sim attention
|
2022-07-18 11:29:20 -07:00 |
|
Phil Wang
|
2b742dd2cc
|
move accelerator backward outside of autocast context, also calculate total loss correctly across gradient accumulated steps
|
2022-07-11 21:02:06 -07:00 |
|
Phil Wang
|
1345a8a41d
|
do not noise at the last timestep for ddim
|
2022-07-09 18:36:45 -07:00 |
|
Phil Wang
|
931a5af2c3
|
bring in ddim sampling
|
2022-07-09 16:10:23 -07:00 |
|
Phil Wang
|
a0c3443eaa
|
optimizer should be saved and loaded
|
2022-07-08 17:43:41 -07:00 |
|
Phil Wang
|
662172851b
|
add convert_image_to keyword argument, for forcing images being loaded to be converted to some format, greyscale, rgb, rgba, whatever
|
2022-07-08 09:22:59 -07:00 |
|
Phil Wang
|
0248b5e4d3
|
also make sure grad scaler actually exists in the saved pt file
|
2022-07-06 11:48:04 -07:00 |
|
Phil Wang
|
6b56af08a2
|
support multi-gpu training using huggingface accelerate, addressing https://github.com/lucidrains/denoising-diffusion-pytorch/pull/54
|
2022-07-06 11:45:56 -07:00 |
|
Phil Wang
|
d4420248f1
|
tqdm auto instead
|
2022-06-29 19:48:49 -07:00 |
|
Phil Wang
|
1b85379d3a
|
add clamping option to elucidated diffusion
|
2022-06-29 08:32:10 -07:00 |
|
Phil Wang
|
8859864f63
|
patch
|
2022-06-29 07:55:11 -07:00 |
|
Phil Wang
|
8408775cfc
|
fix bug in elucidating sampling
|
2022-06-28 17:52:02 -07:00 |
|
Phil Wang
|
86fcb6785b
|
release elucidating diffusion
|
2022-06-28 17:39:48 -07:00 |
|
Phil Wang
|
d26acbcae6
|
more skip connections, as in guided diffusion
|
2022-06-27 13:23:32 -07:00 |
|
Phil Wang
|
9939a48139
|
make sure all versions of torch supported
|
2022-06-23 12:28:09 -07:00 |
|
Phil Wang
|
75ea49a7ef
|
pass parameter for Trainer to EMA properly
|
2022-06-21 07:37:43 -07:00 |
|
Phil Wang
|
8c3609a6e3
|
move EMA logic out of the repository for clarity
|
2022-06-20 13:17:51 -07:00 |
|
Phil Wang
|
1586d1a8a0
|
just pluck the image size off the gaussian diffusion class
|
2022-06-17 13:54:41 -07:00 |
|
Phil Wang
|
b4fb8804d2
|
conditioning on final resnet block
|
2022-06-17 10:38:17 -07:00 |
|
Phil Wang
|
9fd05f1b1f
|
switch to learned sinsuoidal pos emb for the continuous case
|
2022-06-17 09:24:51 -07:00 |
|
Phil Wang
|
ec2397f0ba
|
add one more residual
|
2022-06-16 11:08:42 -07:00 |
|
Phil Wang
|
844e557dfb
|
fix a missing residual needed at the top most resolution in the unet
|
2022-06-15 19:10:05 -07:00 |
|
Phil Wang
|
8b30be8042
|
add p2 loss reweighting for default ddpm as an option
|
2022-06-14 10:49:13 -07:00 |
|
Phil Wang
|
ecc6f30901
|
for https://github.com/lucidrains/denoising-diffusion-pytorch/issues/36
|
2022-06-11 10:51:13 -07:00 |
|
Phil Wang
|
f900f40f14
|
allow for turning off horizontal flip augmentation
|
2022-06-09 20:59:59 -07:00 |
|
Phil Wang
|
479f60c178
|
add p2 loss weighting to SNR version of denoising diffusion, brought up by @Mut1nyJD, paper is https://arxiv.org/abs/2204.00227
|
2022-06-09 08:25:05 -07:00 |
|
Phil Wang
|
96bb2ff310
|
alpha cosine noise schedule is now working for continuous time gaussian diffusion
|
2022-06-08 23:07:01 -07:00 |
|
Phil Wang
|
582bfe275b
|
successfully did some basic math and clipped the predicted x0 intermediate for the continuous time case
|
2022-06-08 17:59:41 -07:00 |
|
Phil Wang
|
4284c8840d
|
clipping for continuous time diffusion not working
|
2022-06-08 16:26:18 -07:00 |
|
Phil Wang
|
c44d3ea01d
|
learned noise schedule seems to be working, allow for one to make the monotonic net learn a bit more slowly than the unet
|
2022-06-08 12:34:07 -07:00 |
|
Phil Wang
|
c4991f576f
|
allow for configuring the hidden dimension of the monotonic mlp parameterizing the noise schedule
|
2022-06-08 11:18:54 -07:00 |
|
Phil Wang
|
a19331aa59
|
fix learned noise schedule
|
2022-06-08 10:19:02 -07:00 |
|
Phil Wang
|
94eabaca1a
|
complete learned noise schedule for variational ddpm paper, still need to finish cosine alpha schedule in log(snr) form
|
2022-06-08 09:47:09 -07:00 |
|
Phil Wang
|
eaf9d9fdc4
|
unet needs to be conditioned on log(snr) in p_mean_variance for continuous time gaussian diffusion
|
2022-06-08 00:41:41 -07:00 |
|
Phil Wang
|
3bf5e768c2
|
use a non-sinusoidal embedded condition for continuous time gaussian diffusion conditioned on log(snr)
|
2022-06-07 21:15:27 -07:00 |
|
Phil Wang
|
532178a6a3
|
assume when sampling all batch samples are at the same time, and do not noise for the last time step
|
2022-06-07 16:12:44 -07:00 |
|
Phil Wang
|
3bbb6ebf16
|
get working version of gaussian diffusion with continuous time (only beta linear schedule for now, but will eventually contain alpha cosine schedule as well as parameterized, learned monotonic MLP)
|
2022-06-07 15:59:29 -07:00 |
|
Phil Wang
|
a291da5098
|
bring back linear noise schedule, but default to cosine
|
2022-05-27 19:13:05 -07:00 |
|
Phil Wang
|
e5a18bb25c
|
switch over to film like conditioning, used by both openai and google at this point
|
2022-05-24 23:47:34 -07:00 |
|
Phil Wang
|
fc8e4547aa
|
higher default learning rate
|
2022-05-16 13:39:55 -07:00 |
|
Phil Wang
|
cae9f4a71f
|
whoops
|
2022-05-14 13:59:21 -07:00 |
|
Phil Wang
|
91f03fb88b
|
optimize for simplicity and clarity - researcher does not need to worry about normalizing and unnormalizing now
|
2022-05-14 11:38:43 -07:00 |
|
Phil Wang
|
60128257c5
|
use tqdm pbar during training
|
2022-05-13 20:25:49 -07:00 |
|
Phil Wang
|
cf6db71985
|
add gaussian diffusion where model predicts both noise and x_start, with a learned weighting between the two (experimental)
|
2022-05-13 13:56:32 -07:00 |
|