MCPcopy Create free account
hub / github.com/dome272/Diffusion-Models-pytorch / __init__

Method __init__

modules.py:8–11  ·  view source on GitHub ↗
(self, beta)

Source from the content-addressed store, hash-verified

6
7class EMA:
8 def __init__(self, beta):
9 super().__init__()
10 self.beta = beta
11 self.step = 0
12
13 def update_model_average(self, ma_model, current_model):
14 for current_params, ma_params in zip(current_model.parameters(), ma_model.parameters()):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected