4b8716fd4bd6f462a9db9eee958f2508576ec019,gluoncv/utils/metrics/coco_detection.py,COCODetectionMetric,__init__,#COCODetectionMetric#Any#Any#Any#Any#Any#,32
Before Change
def __init__(self, dataset, save_prefix, use_time=True, cleanup=False, score_thresh=0.05):
super(COCODetectionMetric, self).__init__("COCOMeanAP")
self.dataset = dataset
self._img_ids = sorted(dataset.coco.getImgIds())
self._current_id = 0
self._cleanup = cleanup
self._results = []
self._score_thresh = score_thresh
After Change
Use coco to get real scores.
if not self._current_id == len(self._img_ids):
warnings.warn(
"Recorded {} out of {} validation images, incompelete results".format(
self._current_id, len(self._img_ids)))
import json
try:
with open(self._filename, "w") as f:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: dmlc/gluon-cv
Commit Name: 4b8716fd4bd6f462a9db9eee958f2508576ec019
Time: 2018-06-15
Author: cheungchih@gmail.com
File Name: gluoncv/utils/metrics/coco_detection.py
Class Name: COCODetectionMetric
Method Name: __init__
Project Name: ray-project/ray
Commit Name: 6247740b94ec0764964f2bb19c8c5273c1db92a9
Time: 2020-09-21
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/progress_reporter.py
Class Name:
Method Name: trial_progress_str
Project Name: dmlc/gluon-nlp
Commit Name: 4f89ca033537fe83d912d858b3e337e40a8c799d
Time: 2019-06-05
Author: linhaibin.eric@gmail.com
File Name: src/gluonnlp/data/stream.py
Class Name: SimpleDatasetStream
Method Name: __init__
Project Name: google/deepvariant
Commit Name: 8960b78d9a40730f247bbde7b62ba0cc0fb3ba5e
Time: 2018-04-18
Author: mdepristo@google.com
File Name: deepvariant/realigner/window_selector.py
Class Name:
Method Name: _process_read