(self, batch_size, image_height, image_width)
| 371 | } |
| 372 | |
| 373 | def get_sample_input(self, batch_size, image_height, image_width): |
| 374 | latent_height, latent_width = self.check_dims(batch_size, image_height, image_width) |
| 375 | return torch.randn(batch_size, 4, latent_height, latent_width, dtype=torch.float32, device=self.device) |
| 376 | |
| 377 | def make_VAE(version, hf_token, device, verbose, max_batch_size, inpaint=False): |
| 378 | return VAE(hf_token=hf_token, device=device, verbose=verbose, path=get_path(version, inpaint=inpaint), |