4b8716fd4bd6f462a9db9eee958f2508576ec019,gluoncv/utils/metrics/coco_detection.py,COCODetectionMetric,__init__,#COCODetectionMetric#Any#Any#Any#Any#Any#,32

Before Change


        try:
            f = open(self._filename, "w")
        except IOError as e:
            raise RuntimeError("Unable to open json file to dump. What(): {}".format(str(e)))
        else:
            f.close()

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:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: microsoft/nni
Commit Name: 5af01545fce906a682f44741b4f6b6bd2b1d2585
Time: 2019-05-15
Author: zhulifei@riseup.net
File Name: src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
Class Name:
Method Name: json2space


Project Name: microsoft/nni
Commit Name: 5af01545fce906a682f44741b4f6b6bd2b1d2585
Time: 2019-05-15
Author: zhulifei@riseup.net
File Name: src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
Class Name:
Method Name: json2parameter