Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,9 +15,10 @@ model.eval()
|
|
| 15 |
def predict(inp):
|
| 16 |
print("***********Inference****************")
|
| 17 |
mask = inference_img(model, inp)
|
| 18 |
-
print("***********Inference finish****************")
|
| 19 |
inp_np = np.array(inp)
|
| 20 |
fg = np.uint8((mask*inp_np).permute(1,2,0).numpy())
|
|
|
|
|
|
|
| 21 |
|
| 22 |
return [mask, fg]
|
| 23 |
|
|
|
|
| 15 |
def predict(inp):
|
| 16 |
print("***********Inference****************")
|
| 17 |
mask = inference_img(model, inp)
|
|
|
|
| 18 |
inp_np = np.array(inp)
|
| 19 |
fg = np.uint8((mask*inp_np).permute(1,2,0).numpy())
|
| 20 |
+
print("***********Inference finish****************")
|
| 21 |
+
print("***********FG****************", fg.shape, mask.shape)
|
| 22 |
|
| 23 |
return [mask, fg]
|
| 24 |
|