Spaces:
Runtime error
Runtime error
Update depth_app.py
Browse files- depth_app.py +2 -1
depth_app.py
CHANGED
@@ -58,7 +58,8 @@ def process_depth_condition_midas(img, res=1024):
|
|
58 |
return Image.fromarray(result)
|
59 |
|
60 |
MAX_SEED = np.iinfo(np.int32).max
|
61 |
-
MAX_IMAGE_SIZE = 1024
|
|
|
62 |
|
63 |
def infer_depth(prompt,
|
64 |
image=None,
|
|
|
58 |
return Image.fromarray(result)
|
59 |
|
60 |
MAX_SEED = np.iinfo(np.int32).max
|
61 |
+
#MAX_IMAGE_SIZE = 1024
|
62 |
+
MAX_IMAGE_SIZE = 512
|
63 |
|
64 |
def infer_depth(prompt,
|
65 |
image=None,
|