Spaces:
Runtime error
Runtime error
Update canny_app.py
Browse files- canny_app.py +2 -1
canny_app.py
CHANGED
@@ -56,7 +56,8 @@ def process_canny_condition(image, canny_threods=[100, 200]):
|
|
56 |
return Image.fromarray(np_image)
|
57 |
|
58 |
MAX_SEED = np.iinfo(np.int32).max
|
59 |
-
MAX_IMAGE_SIZE = 1024
|
|
|
60 |
|
61 |
def infer_canny(prompt,
|
62 |
image=None,
|
|
|
56 |
return Image.fromarray(np_image)
|
57 |
|
58 |
MAX_SEED = np.iinfo(np.int32).max
|
59 |
+
#MAX_IMAGE_SIZE = 1024
|
60 |
+
MAX_IMAGE_SIZE = 512
|
61 |
|
62 |
def infer_canny(prompt,
|
63 |
image=None,
|