Spaces:
Runtime error
Runtime error
Update switch_app.py
Browse files- switch_app.py +2 -1
switch_app.py
CHANGED
@@ -39,7 +39,8 @@ model_midas = MidasDetector()
|
|
39 |
model_dwpose = DWposeDetector()
|
40 |
|
41 |
MAX_SEED = np.iinfo(np.int32).max
|
42 |
-
MAX_IMAGE_SIZE = 1024
|
|
|
43 |
|
44 |
def process_canny_condition(image, canny_threods=[100, 200]):
|
45 |
np_image = image.copy()
|
|
|
39 |
model_dwpose = DWposeDetector()
|
40 |
|
41 |
MAX_SEED = np.iinfo(np.int32).max
|
42 |
+
#MAX_IMAGE_SIZE = 1024
|
43 |
+
MAX_IMAGE_SIZE = 512
|
44 |
|
45 |
def process_canny_condition(image, canny_threods=[100, 200]):
|
46 |
np_image = image.copy()
|