MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / configure_optimizers

Method configure_optimizers

ldm/models/diffusion/ddpm.py:521–527  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

519 return log
520
521 def configure_optimizers(self):
522 lr = self.learning_rate
523 params = list(self.model.parameters())
524 if self.learn_logvar:
525 params = params + [self.logvar]
526 opt = torch.optim.AdamW(params, lr=lr)
527 return opt
528
529
530class LatentDiffusion(DDPM):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected