yamildiego commited on
Commit
63859a4
·
1 Parent(s): 17fe0cc

old version

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -27,8 +27,8 @@ class EndpointHandler():
27
 
28
 
29
  self.pipe = StableDiffusionPipeline.from_pretrained(self.stable_diffusion_id,torch_dtype=dtype,safety_checker=StableDiffusionSafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker", torch_dtype=dtype)).to(device.type)
30
- self.pipe.enable_xformers_memory_efficient_attention()
31
- self.pipe.enable_vae_tiling()
32
  self.generator = torch.Generator(device=device.type).manual_seed(3)
33
 
34
  def __call__(self, data: Any) -> List[List[Dict[str, float]]]:
 
27
 
28
 
29
  self.pipe = StableDiffusionPipeline.from_pretrained(self.stable_diffusion_id,torch_dtype=dtype,safety_checker=StableDiffusionSafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker", torch_dtype=dtype)).to(device.type)
30
+ #self.pipe.enable_xformers_memory_efficient_attention()
31
+ #self.pipe.enable_vae_tiling()
32
  self.generator = torch.Generator(device=device.type).manual_seed(3)
33
 
34
  def __call__(self, data: Any) -> List[List[Dict[str, float]]]: