(self, unet)
| 52 | """Wrapper for UNet that extracts sample tensor from output""" |
| 53 | |
| 54 | def __init__(self, unet): |
| 55 | super().__init__() |
| 56 | self.unet = unet |
| 57 | |
| 58 | def forward(self, latents, timestep, encoder_hidden_states): |
| 59 | # Call UNet and extract sample from the output |