mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2025-12-19 17:54:20 +01:00
just make sure decoder learning rate is reasonable and help out budding researchers
This commit is contained in:
@@ -451,6 +451,8 @@ class DecoderTrainer(nn.Module):
|
||||
|
||||
lr, wd, eps = map(partial(cast_tuple, length = self.num_unets), (lr, wd, eps))
|
||||
|
||||
assert all([unet_lr < 1e-3 for unet_lr in lr]), 'your learning rate is too high, recommend sticking with 1e-4, at most 5e-4'
|
||||
|
||||
optimizers = []
|
||||
|
||||
for unet, unet_lr, unet_wd, unet_eps in zip(decoder.unets, lr, wd, eps):
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = '0.11.4'
|
||||
__version__ = '0.11.5'
|
||||
|
||||
Reference in New Issue
Block a user