mirror of
https://github.com/wassname/denoising-diffusion-pytorch.git
synced 2026-09-10 12:01:08 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88922929cb | ||
|
|
cf4f44909f | ||
|
|
a7f2d670bb |
@@ -488,7 +488,7 @@ class GaussianDiffusion(nn.Module):
|
|||||||
beta_schedule = 'cosine',
|
beta_schedule = 'cosine',
|
||||||
p2_loss_weight_gamma = 0., # p2 loss weight, from https://arxiv.org/abs/2204.00227 - 0 is equivalent to weight of 1 across time - 1. is recommended
|
p2_loss_weight_gamma = 0., # p2 loss weight, from https://arxiv.org/abs/2204.00227 - 0 is equivalent to weight of 1 across time - 1. is recommended
|
||||||
p2_loss_weight_k = 1,
|
p2_loss_weight_k = 1,
|
||||||
ddim_sampling_eta = 1.
|
ddim_sampling_eta = 0.
|
||||||
):
|
):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
assert not (type(self) == GaussianDiffusion and model.channels != model.out_dim)
|
assert not (type(self) == GaussianDiffusion and model.channels != model.out_dim)
|
||||||
|
|||||||
@@ -810,8 +810,8 @@ class Trainer(object):
|
|||||||
if self.accelerator.is_main_process:
|
if self.accelerator.is_main_process:
|
||||||
self.ema = EMA(diffusion_model, beta = ema_decay, update_every = ema_update_every)
|
self.ema = EMA(diffusion_model, beta = ema_decay, update_every = ema_update_every)
|
||||||
|
|
||||||
self.results_folder = Path(results_folder)
|
self.results_folder = Path(results_folder)
|
||||||
self.results_folder.mkdir(exist_ok = True)
|
self.results_folder.mkdir(exist_ok = True)
|
||||||
|
|
||||||
# step counter state
|
# step counter state
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = '0.1.0'
|
__version__ = '0.1.5'
|
||||||
|
|||||||
Reference in New Issue
Block a user