primerz commited on
Commit
965965e
·
verified ·
1 Parent(s): 945ea91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- # Pass the image's own size as tuples to prevent
248
- # controlnet_aux from resizing to a square and to fix TypeError.
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=(w_int, h_int),
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