MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / __init__

Method __init__

src/diffusion/respace.py:117–121  ·  view source on GitHub ↗
(self, model, timestep_map, rescale_timesteps, original_num_steps)

Source from the content-addressed store, hash-verified

115
116class _WrappedModel:
117 def __init__(self, model, timestep_map, rescale_timesteps, original_num_steps):
118 self.model = model
119 self.timestep_map = timestep_map
120 self.rescale_timesteps = rescale_timesteps
121 self.original_num_steps = original_num_steps
122
123 def __call__(self, x, ts, **kwargs):
124 map_tensor = th.tensor(self.timestep_map, device=ts.device, dtype=ts.dtype)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected