MCPcopy Create free account
hub / github.com/modelscope/DiffSynth-Studio / step

Method step

diffsynth/utils/__init__.py:149–155  ·  view source on GitHub ↗
(self, scheduler, latents, progress_id, noise_pred, input_latents=None, inpaint_mask=None, **kwargs)

Source from the content-addressed store, hash-verified

147
148
149 def step(self, scheduler, latents, progress_id, noise_pred, input_latents=None, inpaint_mask=None, **kwargs):
150 timestep = scheduler.timesteps[progress_id]
151 if inpaint_mask is not None:
152 noise_pred_expected = scheduler.return_to_timestep(scheduler.timesteps[progress_id], latents, input_latents)
153 noise_pred = self.blend_with_mask(noise_pred_expected, noise_pred, inpaint_mask)
154 latents_next = scheduler.step(noise_pred, timestep, latents)
155 return latents_next
156
157
158

Callers 15

__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45

Calls 2

blend_with_maskMethod · 0.95
return_to_timestepMethod · 0.45

Tested by

no test coverage detected