MCPcopy Create free account
hub / github.com/CompVis/zigma / ema_update

Method ema_update

utils/train_state_utils.py:28–30  ·  view source on GitHub ↗
(self, rate=0.9999)

Source from the content-addressed store, hash-verified

26 self.model_ema = model_ema
27
28 def ema_update(self, rate=0.9999):
29 if self.model_ema is not None:
30 ema(self.model_ema, self.model, rate)
31
32 def save(self, path):
33 os.makedirs(path, exist_ok=True)

Callers 1

initialize_train_stateFunction · 0.95

Calls 1

emaFunction · 0.85

Tested by

no test coverage detected