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

Method _wrap_model

diff2flow/openai_diffusion/respace.py:105–110  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

103 return super().condition_score(self._wrap_model(cond_fn), *args, **kwargs)
104
105 def _wrap_model(self, model):
106 if isinstance(model, _WrappedModel):
107 return model
108 return _WrappedModel(
109 model, self.timestep_map, self.original_num_steps
110 )
111
112 def _scale_timesteps(self, t):
113 # Scaling is done by the wrapped model.

Callers 4

p_mean_varianceMethod · 0.95
training_lossesMethod · 0.95
condition_meanMethod · 0.95
condition_scoreMethod · 0.95

Calls 1

_WrappedModelClass · 0.85

Tested by

no test coverage detected