aee97b14f7b18ed505393642083cfb24b54c9a8b,lib/core/test_retinanet.py,,multi_gpu_test_retinanet_on_dataset,#Any#Any#Any#,258

Before Change


    // Combine the results from each subprocess now
    boxes, scores, classes, image_ids = [], [], [], []
    for det_data in outputs:
        boxes.extend(det_data["boxes"])
        scores.extend(det_data["scores"])
        classes.extend(det_data["classes"])
        image_ids.extend(det_data["ids"])
    return boxes, scores, classes, image_ids,

After Change


    all_boxes = [[] for _ in range(cfg.MODEL.NUM_CLASSES)]
    for det_data in outputs:
        all_boxes_batch = det_data["all_boxes"]
        for cls_idx in range(1, cfg.MODEL.NUM_CLASSES):
            all_boxes[cls_idx] += all_boxes_batch[cls_idx]

    // Save the computed detections
    det_file = os.path.join(output_dir, "detections.pkl")
    cfg_yaml = yaml.dump(cfg)
    save_object(
        dict(all_boxes=all_boxes, cfg=cfg_yaml),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: facebookresearch/Detectron
Commit Name: aee97b14f7b18ed505393642083cfb24b54c9a8b
Time: 2018-01-29
Author: ilijar@fb.com
File Name: lib/core/test_retinanet.py
Class Name:
Method Name: multi_gpu_test_retinanet_on_dataset


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: e316f21500dfd57d54b0eba111c8040d6436dd7a
Time: 2020-12-17
Author: tohaowu@google.com
File Name: perfkitbenchmarker/providers/aws/aws_virtual_machine.py
Class Name: AwsVirtualMachine
Method Name: _Create


Project Name: HazyResearch/fonduer
Commit Name: a90a736bf5c13fde732f0769439d769b91f7bf3d
Time: 2018-09-01
Author: lwhsiao@stanford.edu
File Name: src/fonduer/supervision/labeler.py
Class Name: Labeler
Method Name: update