Spaces:
Running
on
Zero
Running
on
Zero
Martin Tomov
commited on
extract_and_paste_insect and create_yellow_background_with_insects fix
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ class DetectionResult:
|
|
30 |
score: float
|
31 |
label: str
|
32 |
box: BoundingBox
|
33 |
-
mask: Optional[np.
|
34 |
|
35 |
@classmethod
|
36 |
def from_dict(cls, detection_dict: Dict) -> 'DetectionResult':
|
@@ -169,4 +169,4 @@ gr.Interface(
|
|
169 |
inputs=gr.Image(type="pil"),
|
170 |
outputs=[gr.Image(type="numpy"), gr.Image(type="numpy")],
|
171 |
title="π Insect Detection and Masking"
|
172 |
-
).launch()
|
|
|
30 |
score: float
|
31 |
label: str
|
32 |
box: BoundingBox
|
33 |
+
mask: Optional[np.ndarray] = None
|
34 |
|
35 |
@classmethod
|
36 |
def from_dict(cls, detection_dict: Dict) -> 'DetectionResult':
|
|
|
169 |
inputs=gr.Image(type="pil"),
|
170 |
outputs=[gr.Image(type="numpy"), gr.Image(type="numpy")],
|
171 |
title="π Insect Detection and Masking"
|
172 |
+
).launch()
|