lucidrains/ema-pytorch

Implementation error

sbl1996 opened this issue · 1 comments

for name, buffer in model.named_parameters():

I think it should be for name, buffer in model.named_buffers():.

A related hint for users: do not forget to call ema.eval() in your evaluation loop.

@sbl1996 ah yes, thank you 😞