mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-24 01:48:13 +00:00
hunyuanvideo step_processor
This commit is contained in:
@@ -46,7 +46,6 @@ class FlowMatchScheduler():
|
|||||||
|
|
||||||
|
|
||||||
def return_to_timestep(self, timestep, sample, sample_stablized):
|
def return_to_timestep(self, timestep, sample, sample_stablized):
|
||||||
# This scheduler doesn't support this function.
|
|
||||||
if isinstance(timestep, torch.Tensor):
|
if isinstance(timestep, torch.Tensor):
|
||||||
timestep = timestep.cpu()
|
timestep = timestep.cpu()
|
||||||
timestep_id = torch.argmin((self.timesteps - timestep).abs())
|
timestep_id = torch.argmin((self.timesteps - timestep).abs())
|
||||||
|
|||||||
Reference in New Issue
Block a user