michaelapplydesign commited on
Commit
f59e95f
1 Parent(s): 92ac539

resize to 512

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -15,8 +15,12 @@ def image_to_byte_array(image: Image) -> bytes:
15
  return imgByteArr
16
 
17
  def predict(input_img1,input_img2):
 
18
  print("predict")
19
 
 
 
 
20
  canvas_mask = np.array(input_img2)
21
  mask = get_mask(canvas_mask)
22
 
 
15
  return imgByteArr
16
 
17
  def predict(input_img1,input_img2):
18
+
19
  print("predict")
20
 
21
+ input_img1 = input_img1.resize((512, 512))
22
+ input_img2 = input_img2.resize((512, 512))
23
+
24
  canvas_mask = np.array(input_img2)
25
  mask = get_mask(canvas_mask)
26