faster-coco-eval 1.5.3__tar.gz → 1.5.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. {faster_coco_eval-1.5.3/faster_coco_eval.egg-info → faster_coco_eval-1.5.4}/PKG-INFO +1 -1
  2. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/core/faster_eval_api.py +5 -7
  3. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/extra/draw.py +10 -3
  4. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/version.py +1 -1
  5. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4/faster_coco_eval.egg-info}/PKG-INFO +1 -1
  6. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/LICENSE +0 -0
  7. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/MANIFEST.in +0 -0
  8. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/README.md +0 -0
  9. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/csrc/faster_eval_api/coco_eval/cocoeval.cpp +0 -0
  10. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/csrc/faster_eval_api/coco_eval/cocoeval.h +0 -0
  11. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/csrc/faster_eval_api/faster_eval_api.cpp +0 -0
  12. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/csrc/mask/common/maskApi.c +0 -0
  13. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/csrc/mask/common/maskApi.h +0 -0
  14. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/csrc/mask/pycocotools/_mask.pyx +0 -0
  15. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/__init__.py +0 -0
  16. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/core/__init__.py +0 -0
  17. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/core/coco.py +0 -0
  18. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/core/cocoeval.py +0 -0
  19. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/core/mask.py +0 -0
  20. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/extra/__init__.py +0 -0
  21. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/extra/curves.py +0 -0
  22. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/extra/display.py +0 -0
  23. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/extra/extra.py +0 -0
  24. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval/extra/utils.py +0 -0
  25. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval.egg-info/SOURCES.txt +0 -0
  26. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval.egg-info/dependency_links.txt +0 -0
  27. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval.egg-info/requires.txt +0 -0
  28. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/faster_coco_eval.egg-info/top_level.txt +0 -0
  29. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/pyproject.toml +0 -0
  30. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/requirements/extra.txt +0 -0
  31. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/requirements/runtime.txt +0 -0
  32. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/setup.cfg +0 -0
  33. {faster_coco_eval-1.5.3 → faster_coco_eval-1.5.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: faster-coco-eval
3
- Version: 1.5.3
3
+ Version: 1.5.4
4
4
  Summary: Faster interpretation of the original COCOEval
5
5
  Home-page: https://github.com/MiXaiLL76/faster_coco_eval
6
6
  Author: MiXaiLL76
@@ -334,11 +334,6 @@ class COCOeval_faster(COCOeval):
334
334
 
335
335
  @property
336
336
  def stats_as_dict(self):
337
- iouType = self.params.iouType
338
- assert (
339
- iouType == "segm" or iouType == "bbox"
340
- ), "iouType={} not supported".format(iouType)
341
-
342
337
  labels = [
343
338
  "AP_all",
344
339
  "AP_50",
@@ -352,10 +347,13 @@ class COCOeval_faster(COCOeval):
352
347
  "AR_small",
353
348
  "AR_medium",
354
349
  "AR_large",
355
- "AR_50",
356
- "AR_75",
357
350
  ]
358
351
 
352
+ if self.params.iouType in ["segm", "bbox"]:
353
+ labels += ["AR_50", "AR_75"]
354
+ else:
355
+ labels = [label for label in labels if "small" not in label]
356
+
359
357
  if self.matched:
360
358
  labels += [
361
359
  "mIoU",
@@ -59,6 +59,12 @@ def generate_ann_polygon(
59
59
  ):
60
60
  all_x += [xyz[int(p1 - 1), 0], xyz[int(p2 - 1), 0], None]
61
61
  all_y += [xyz[int(p1 - 1), 1], xyz[int(p2 - 1), 1], None]
62
+
63
+ if ann.get("bbox"):
64
+ x1, y1, w, h = ann.get("bbox")
65
+ all_x += [x1, x1 + w, x1 + w, x1, x1, None]
66
+ all_y += [y1, y1, y1 + h, y1 + h, y1, None]
67
+
62
68
  else:
63
69
  raise ValueError()
64
70
 
@@ -218,9 +224,10 @@ def display_image(
218
224
 
219
225
  legends = {}
220
226
  for poly in polygons:
221
- if legends.get(poly.legendgroup) is None:
222
- poly.showlegend = True
223
- legends[poly.legendgroup] = True
227
+ if poly is not None:
228
+ if legends.get(poly.legendgroup) is None:
229
+ poly.showlegend = True
230
+ legends[poly.legendgroup] = True
224
231
 
225
232
  fig.add_trace(poly)
226
233
 
@@ -1,2 +1,2 @@
1
- __version__ = "1.5.3"
1
+ __version__ = "1.5.4"
2
2
  __author__ = "MiXaiLL76"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: faster-coco-eval
3
- Version: 1.5.3
3
+ Version: 1.5.4
4
4
  Summary: Faster interpretation of the original COCOEval
5
5
  Home-page: https://github.com/MiXaiLL76/faster_coco_eval
6
6
  Author: MiXaiLL76