mirror of
https://github.com/wassname/denoising-diffusion-pytorch.git
synced 2026-09-13 12:31:15 +08:00
allow for mixed precision training with fp16 flag
This commit is contained in:
@@ -66,7 +66,8 @@ trainer = Trainer(
|
||||
train_lr = 2e-5,
|
||||
train_num_steps = 100000, # total training steps
|
||||
gradient_accumulate_every = 2, # gradient accumulation steps
|
||||
ema_decay = 0.995 # exponential moving average decay
|
||||
ema_decay = 0.995, # exponential moving average decay
|
||||
fp16 = True # turn on mixed precision training with apex
|
||||
)
|
||||
|
||||
trainer.train()
|
||||
|
||||
Reference in New Issue
Block a user