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

Method __init__

ldm/models/diffusion/plms.py:13–17  ·  view source on GitHub ↗
(self, model, schedule="linear", **kwargs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected