(self, model, scheduler, NUM_DDIM_STEPS)
| 6 | |
| 7 | class 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]): |
nothing calls this directly
no outgoing calls
no test coverage detected