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

Method __call__

diff2flow/openai_diffusion/respace.py:124–129  ·  view source on GitHub ↗
(self, x, ts, **kwargs)

Source from the content-addressed store, hash-verified

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)
126 new_ts = map_tensor[ts]
127 # if self.rescale_timesteps:
128 # new_ts = new_ts.float() * (1000.0 / self.original_num_steps)
129 return self.model(x, new_ts, **kwargs)

Callers

nothing calls this directly

Calls 1

modelMethod · 0.80

Tested by

no test coverage detected