MCPcopy Create free account
hub / github.com/Francis-Rings/MotionFollower / __init__

Method __init__

src/utils/inversion.py:8–12  ·  view source on GitHub ↗
(self, model, scheduler, NUM_DDIM_STEPS)

Source from the content-addressed store, hash-verified

6
7class DDIMInversion:
8 def __init__(self, model, scheduler, NUM_DDIM_STEPS):
9 self.model = model
10 self.scheduler = scheduler
11 self.scheduler.set_timesteps(NUM_DDIM_STEPS)
12 self.NUM_DDIM_STEPS = NUM_DDIM_STEPS
13
14 def next_step(self, model_output: Union[torch.FloatTensor, np.ndarray], timestep: int,
15 sample: Union[torch.FloatTensor, np.ndarray]):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected