yizhangliu commited on
Commit
809a8a0
1 Parent(s): 5117bd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -233,7 +233,7 @@ def predict(dict):
233
  '''
234
 
235
  image = Image.fromarray(dict["image"])
236
- mask = np.array(Image.fromarray(dict["mask"]).convert("RGB"))
237
  print(f'mask___1 = {mask.shape}')
238
 
239
  output = model_process(dict["image"], dict["mask"])
 
233
  '''
234
 
235
  image = Image.fromarray(dict["image"])
236
+ mask = np.array(Image.fromarray(dict["mask"]).convert("L"))
237
  print(f'mask___1 = {mask.shape}')
238
 
239
  output = model_process(dict["image"], dict["mask"])