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

Method __init__

cldm/ddim_hacked.py:11–15  ·  view source on GitHub ↗
(self, model, schedule="linear", **kwargs)

Source from the content-addressed store, hash-verified

9
10class DDIMSampler(object):
11 def __init__(self, model, schedule="linear", **kwargs):
12 super().__init__()
13 self.model = model
14 self.ddpm_num_timesteps = model.num_timesteps
15 self.schedule = schedule
16
17 def register_buffer(self, name, attr):
18 if type(attr) == torch.Tensor:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected