MCPcopy Create free account
hub / github.com/openai/shap-e / process_xstart

Method process_xstart

shap_e/diffusion/gaussian_diffusion.py:368–373  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

366 model_log_variance = _extract_into_tensor(model_log_variance, t, x.shape)
367
368 def process_xstart(x):
369 if denoised_fn is not None:
370 x = denoised_fn(x)
371 if clip_denoised:
372 return x.clamp(-1, 1)
373 return x
374
375 if self.model_mean_type == "x_prev":
376 pred_xstart = process_xstart(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected