Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -244,13 +244,13 @@ class RetroArtConverter:
|
|
| 244 |
# Ensure they are standard Python ints, not numpy.int64
|
| 245 |
w_int, h_int = int(w), int(h)
|
| 246 |
|
| 247 |
-
#
|
| 248 |
-
#
|
| 249 |
print(f" Generating Zoe depth map at {w_int}x{h_int} resolution...")
|
| 250 |
depth_image = self.zoe_depth(
|
| 251 |
image,
|
| 252 |
-
detect_resolution=
|
| 253 |
-
image_resolution=(w_int, h_int)
|
| 254 |
)
|
| 255 |
# --- END FIX ---
|
| 256 |
return depth_image
|
|
|
|
| 244 |
# Ensure they are standard Python ints, not numpy.int64
|
| 245 |
w_int, h_int = int(w), int(h)
|
| 246 |
|
| 247 |
+
# detect_resolution expects an INT (for shortest side)
|
| 248 |
+
# image_resolution expects a TUPLE (width, height)
|
| 249 |
print(f" Generating Zoe depth map at {w_int}x{h_int} resolution...")
|
| 250 |
depth_image = self.zoe_depth(
|
| 251 |
image,
|
| 252 |
+
detect_resolution=512, # Use a standard int value
|
| 253 |
+
image_resolution=(w_int, h_int) # Pass the tuple here
|
| 254 |
)
|
| 255 |
# --- END FIX ---
|
| 256 |
return depth_image
|