Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -44,7 +44,7 @@ class EndpointHandler():
|
|
44 |
latents = latents.to(device="cuda")
|
45 |
|
46 |
with torch.no_grad():
|
47 |
-
latents_dist = self.vae.encode(latents).latent_dist.sample() * vae.config.scaling_factor
|
48 |
|
49 |
self.smooth_pipe.enable_xformers_memory_efficient_attention()
|
50 |
out = self.smooth_pipe(prompt, image=latents_dist).images
|
|
|
44 |
latents = latents.to(device="cuda")
|
45 |
|
46 |
with torch.no_grad():
|
47 |
+
latents_dist = self.vae.encode(latents).latent_dist.sample() * self.vae.config.scaling_factor
|
48 |
|
49 |
self.smooth_pipe.enable_xformers_memory_efficient_attention()
|
50 |
out = self.smooth_pipe(prompt, image=latents_dist).images
|