Spaces:
Running
Running
minimal workable demo for prediction
Browse files- 1562990.jpg +0 -0
- app.py +6 -2
1562990.jpg
ADDED
app.py
CHANGED
@@ -65,9 +65,13 @@ def fn(image):
|
|
65 |
return Image.fromarray(drawed[..., ::-1])
|
66 |
|
67 |
iface = gr.Interface(
|
68 |
-
|
|
|
|
|
|
|
69 |
inputs=gr.Image(type="numpy"),
|
70 |
-
outputs=gr.Image(type="pil")
|
|
|
71 |
)
|
72 |
|
73 |
iface.launch()
|
|
|
65 |
return Image.fromarray(drawed[..., ::-1])
|
66 |
|
67 |
iface = gr.Interface(
|
68 |
+
# design titles and text descriptions
|
69 |
+
title="Anime Subject Instance Segmentation",
|
70 |
+
description="This is a demo of Anime Instance Segmentation with our proposed model in [AnimeInstanceSegmentation](https://cartoonsegmentation.github.io/)",
|
71 |
+
fn=fn,
|
72 |
inputs=gr.Image(type="numpy"),
|
73 |
+
outputs=gr.Image(type="pil"),
|
74 |
+
examples=["1562990.jpg"]
|
75 |
)
|
76 |
|
77 |
iface.launch()
|