Spaces:
Runtime error
Runtime error
test model file
Browse files
app.py
CHANGED
@@ -24,8 +24,7 @@ import numpy as np
|
|
24 |
from model import AppModel
|
25 |
|
26 |
DESCRIPTION = '''# MMDetection
|
27 |
-
This is
|
28 |
-
<img id="overview" alt="overview" src="https://user-images.githubusercontent.com/12907710/137271636-56ba1cd2-b110-4812-8221-b4c120320aa9.png" />
|
29 |
'''
|
30 |
|
31 |
DEFAULT_MODEL_TYPE = 'detection'
|
|
|
24 |
from model import AppModel
|
25 |
|
26 |
DESCRIPTION = '''# MMDetection
|
27 |
+
This is a demo of MMDetection framework trained on biological dataset [Orgaquant](https://www.nature.com/articles/s41598-019-48874-y) to perform organoid detection.
|
|
|
28 |
'''
|
29 |
|
30 |
DEFAULT_MODEL_TYPE = 'detection'
|
model.py
CHANGED
@@ -54,6 +54,7 @@ class Model:
|
|
54 |
| tuple[list[np.ndarray], list[list[np.ndarray]]]
|
55 |
| dict[str, np.ndarray],
|
56 |
score_threshold: float = 0.3) -> np.ndarray:
|
|
|
57 |
vis = self.model.show_result(image,
|
58 |
detection_results,
|
59 |
score_thr=score_threshold,
|
|
|
54 |
| tuple[list[np.ndarray], list[list[np.ndarray]]]
|
55 |
| dict[str, np.ndarray],
|
56 |
score_threshold: float = 0.3) -> np.ndarray:
|
57 |
+
print('Detection results',detection_results)
|
58 |
vis = self.model.show_result(image,
|
59 |
detection_results,
|
60 |
score_thr=score_threshold,
|