karimbenharrak commited on
Commit
df11e3d
·
verified ·
1 Parent(s): 157feb0

Update handler.py

Browse files
Files changed (1) hide show
  1. 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