asoderznik
commited on
Commit
·
43b0eb9
1
Parent(s):
4e4734a
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -35,7 +35,7 @@ class EndpointHandler():
|
|
35 |
|
36 |
self.pipe = StableDiffusionUpscalePipeline.from_pretrained(self.path, torch_dtype=torch.float16)
|
37 |
self.pipe = self.pipe.to(device)
|
38 |
-
self.pipe.enable_xformers_memory_efficient_attention()
|
39 |
logger.info('data received %s', data)
|
40 |
inputs = data.get("inputs")
|
41 |
logger.info('inputs received %s', inputs)
|
|
|
35 |
|
36 |
self.pipe = StableDiffusionUpscalePipeline.from_pretrained(self.path, torch_dtype=torch.float16)
|
37 |
self.pipe = self.pipe.to(device)
|
38 |
+
#self.pipe.enable_xformers_memory_efficient_attention()
|
39 |
logger.info('data received %s', data)
|
40 |
inputs = data.get("inputs")
|
41 |
logger.info('inputs received %s', inputs)
|