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

Method __init__

diff2flow/openai_diffusion/respace.py:118–122  ·  view source on GitHub ↗
(self, model, timestep_map, original_num_steps)

Source from the content-addressed store, hash-verified

116
117class _WrappedModel:
118 def __init__(self, model, timestep_map, original_num_steps):
119 self.model = model
120 self.timestep_map = timestep_map
121 # self.rescale_timesteps = rescale_timesteps
122 self.original_num_steps = original_num_steps
123
124 def __call__(self, x, ts, **kwargs):
125 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