Commit ·
87d9a6a
1
Parent(s): 6915ef8
didn't work
Browse files- handler.py +2 -2
handler.py
CHANGED
|
@@ -22,8 +22,8 @@ if device.type != 'cuda':
|
|
| 22 |
class EndpointHandler():
|
| 23 |
def __init__(self, path=""):
|
| 24 |
# load the optimized model
|
| 25 |
-
model_id = "stabilityai/stable-diffusion-x4-upscaler"
|
| 26 |
-
self.pipe = StableDiffusionPipeline.from_pretrained(
|
| 27 |
self.pipe = self.pipe.to(device)
|
| 28 |
|
| 29 |
|
|
|
|
| 22 |
class EndpointHandler():
|
| 23 |
def __init__(self, path=""):
|
| 24 |
# load the optimized model
|
| 25 |
+
#model_id = "stabilityai/stable-diffusion-x4-upscaler"
|
| 26 |
+
self.pipe = StableDiffusionPipeline.from_pretrained(path, torch_dtype=torch.float16)
|
| 27 |
self.pipe = self.pipe.to(device)
|
| 28 |
|
| 29 |
|