valor-lite 0.33.14__py3-none-any.whl → 0.33.15__py3-none-any.whl

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.
@@ -408,17 +408,20 @@ def compute_precion_recall(
408
408
 
409
409
  # calculate component metrics
410
410
  recall = np.zeros_like(tp_count)
411
- precision = np.zeros_like(tp_count)
412
411
  np.divide(tp_count, gt_count, where=gt_count > 1e-9, out=recall)
412
+
413
+ precision = np.zeros_like(tp_count)
413
414
  np.divide(tp_count, pd_count, where=pd_count > 1e-9, out=precision)
415
+
414
416
  fn_count = gt_count - tp_count
415
417
 
416
418
  f1_score = np.zeros_like(precision)
417
419
  np.divide(
418
- np.multiply(precision, recall),
420
+ 2 * np.multiply(precision, recall),
419
421
  (precision + recall),
420
422
  where=(precision + recall) > 1e-9,
421
423
  out=f1_score,
424
+ dtype=np.float64,
422
425
  )
423
426
 
424
427
  counts[iou_idx][score_idx] = np.concatenate(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: valor-lite
3
- Version: 0.33.14
3
+ Version: 0.33.15
4
4
  Summary: Compute valor metrics locally.
5
5
  License: MIT License
6
6
 
@@ -9,7 +9,7 @@ valor_lite/classification/metric.py,sha256=0ZGp7Wm4oc0h_EBiYfVEs39QEeL5xa-F27gig
9
9
  valor_lite/classification/utilities.py,sha256=PmQar06Vt-ew4Jvnn0IM63mq730QVTsdRtFdVu1HMFU,6885
10
10
  valor_lite/object_detection/__init__.py,sha256=Ql8rju2q7y0Zd9zFvtBJDRhgQFDm1RSYkTsyH3ZE6pA,648
11
11
  valor_lite/object_detection/annotation.py,sha256=o6VfiRobiB0ljqsNBLAYMXgi32RSIR7uTA-dgxq6zBI,8248
12
- valor_lite/object_detection/computation.py,sha256=xqV_KdYAGyq32VePW0pL8pO3YGRO46ZUVo0luwYD1P8,28024
12
+ valor_lite/object_detection/computation.py,sha256=P5ijxEBuZ3mxYjBQy24TiQpGxRmPuS40Gwn44uv0J7M,28064
13
13
  valor_lite/object_detection/manager.py,sha256=YjM9Kx3xrIt2VMjNZ-8guPchPq7YBABlams_7eZvYVY,23298
14
14
  valor_lite/object_detection/metric.py,sha256=QbxYTOykysshhpdVJjxMPnw8hvcAv4SM3sXDZj8OwnE,23967
15
15
  valor_lite/object_detection/utilities.py,sha256=98VSW-g8EYI8Cdd9KHLHdm6F4fI89jaX5I4z99zny4s,16271
@@ -20,8 +20,8 @@ valor_lite/semantic_segmentation/manager.py,sha256=pMepH3zk_fApyFtC9tLrmEYuCbg1n
20
20
  valor_lite/semantic_segmentation/metric.py,sha256=i8uTcalwvzK7CDHJ_8I-zplWe-qrMtXwH_5ZcTBi3M8,6219
21
21
  valor_lite/semantic_segmentation/utilities.py,sha256=vZM66YNMz9VJclhuKvcWp74nF65s6bscnnD5U9iDW7Q,2925
22
22
  valor_lite/text_generation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- valor_lite-0.33.14.dist-info/LICENSE,sha256=M0L53VuwfEEqezhHb7NPeYcO_glw7-k4DMLZQ3eRN64,1068
24
- valor_lite-0.33.14.dist-info/METADATA,sha256=G2j4SCVunrizKzJ9pBRH8h73RbzbFMbbMViHFuXG4pM,5632
25
- valor_lite-0.33.14.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
26
- valor_lite-0.33.14.dist-info/top_level.txt,sha256=9ujykxSwpl2Hu0_R95UQTR_l07k9UUTSdrpiqmq6zc4,11
27
- valor_lite-0.33.14.dist-info/RECORD,,
23
+ valor_lite-0.33.15.dist-info/LICENSE,sha256=M0L53VuwfEEqezhHb7NPeYcO_glw7-k4DMLZQ3eRN64,1068
24
+ valor_lite-0.33.15.dist-info/METADATA,sha256=7vxvGO1Gc3A0CoRu-T42OA1IM0ksQOjkL13kPZTkcaY,5632
25
+ valor_lite-0.33.15.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
26
+ valor_lite-0.33.15.dist-info/top_level.txt,sha256=9ujykxSwpl2Hu0_R95UQTR_l07k9UUTSdrpiqmq6zc4,11
27
+ valor_lite-0.33.15.dist-info/RECORD,,