Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -103,7 +103,7 @@ class EndpointHandler():
|
|
| 103 |
image = self.decode_base64_image(image)
|
| 104 |
control_image = CONTROLNET_MAPPING[self.control_type]["hinter"](image)
|
| 105 |
|
| 106 |
-
|
| 107 |
|
| 108 |
with torch.no_grad():
|
| 109 |
# run inference pipeline
|
|
|
|
| 103 |
image = self.decode_base64_image(image)
|
| 104 |
control_image = CONTROLNET_MAPPING[self.control_type]["hinter"](image)
|
| 105 |
|
| 106 |
+
control_image = image.resize((512, 512))
|
| 107 |
|
| 108 |
with torch.no_grad():
|
| 109 |
# run inference pipeline
|