svjack commited on
Commit
3a55e0a
Β·
verified Β·
1 Parent(s): 8e3b30d

Update depth_app.py

Browse files
Files changed (1) hide show
  1. 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,