MCPcopy Create free account
hub / github.com/CompVis/diff2flow / __init__

Method __init__

diff2flow/ddim.py:53–57  ·  view source on GitHub ↗
(self, ddpm: GaussianDiffusion, schedule="linear")

Source from the content-addressed store, hash-verified

51
52class DDIMSampler:
53 def __init__(self, ddpm: GaussianDiffusion, schedule="linear"):
54 super().__init__()
55 self.ddpm = ddpm
56 self.ddpm_num_timesteps = ddpm.num_timesteps
57 self.schedule = schedule
58
59 def register_buffer(self, name, attr):
60 if type(attr) == torch.Tensor:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected