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

Method process_xstart

src/diffusion/gaussian_diffusion.py:294–299  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

292 model_log_variance = _extract_into_tensor(model_log_variance, t, x.shape)
293
294 def process_xstart(x):
295 if denoised_fn is not None:
296 x = denoised_fn(x)
297 if clip_denoised:
298 return x.clamp(-1, 1)
299 return x
300
301 if self.model_mean_type == ModelMeanType.PREVIOUS_X:
302 pred_xstart = process_xstart(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected