MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / __call__

Method __call__

sat/sgm/modules/diffusionmodules/guiders.py:70–77  ·  view source on GitHub ↗
(self, x, sigma, step_index, scale=None)

Source from the content-addressed store, hash-verified

68 )
69
70 def __call__(self, x, sigma, step_index, scale=None):
71 x_u, x_c = x.chunk(2)
72
73 if isinstance(step_index, torch.Tensor):
74 step_index = step_index.item()
75 scale_value = self.scale_schedule(sigma, step_index)
76 x_pred = self.dyn_thresh(x_u, x_c, scale_value)
77 return x_pred
78
79
80class TriangleCFG(VanillaCFG):

Callers

nothing calls this directly

Calls 1

scale_scheduleMethod · 0.80

Tested by

no test coverage detected