Spaces:
Running
Running
yizhangliu
commited on
Commit
•
809a8a0
1
Parent(s):
5117bd8
Update app.py
Browse files
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("
|
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"])
|