Spaces:
Runtime error
Runtime error
Update custom_pipeline.py
Browse files151 unmodified lines152153154155156157158159160161151 unmodified lines# Yield intermediate resultlatents = self.scheduler.step(noise_pred, t, latents, return_dict=False)[0]yield self._decode_latents_to_image(latents, height, width, output_type)torch.cuda.empty_cache()# Final imageself.maybe_free_model_hooks()torch.cuda.empty_cache()151 unmodified lines152153154155156157158159160161151 unmodified lines# Yield intermediate resultlatents = self.scheduler.step(noise_pred, t, latents, return_dict=False)[0]torch.cuda.empty_cache()# Final imageyield self._decode_latents_to_image(latents, height, width, output_type)self.maybe_free_model_hooks()torch.cuda.empty_cache()
custom_pipeline.py+1-1