0557b8abe6df2bae50bbda83478762ab96ec25ba,examples/semantic_segmentation/eval_semantic_segmentation_multi.py,,main,#,15

Before Change


        model.predict, it, hook=ProgressHook(len(dataset)), comm=comm)
    // Delete an iterator of images to save memory usage.
    del in_values
    pred_labels, = out_values
    gt_labels, = rest_values

    result = eval_semantic_segmentation(pred_labels, gt_labels)

    for iu, label_name in zip(result["iou"], label_names):
        print("{:>23} : {:.4f}".format(label_name, iu))
    print("=" * 34)
    print("{:>23} : {:.4f}".format("mean IoU", result["miou"]))
    print("{:>23} : {:.4f}".format(
        "Class average accuracy", result["mean_class_accuracy"]))

After Change


    parser = argparse.ArgumentParser()
    parser.add_argument(
        "--dataset", choices=("cityscapes", "ade20k", "camvid", "voc"))
    parser.add_argument("--model", choices=sorted(models.keys()))
    parser.add_argument("--pretrained-model")
    parser.add_argument("--batchsize", type=int)
    parser.add_argument("--input-size", type=int, default=None)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: chainer/chainercv
Commit Name: 0557b8abe6df2bae50bbda83478762ab96ec25ba
Time: 2019-05-17
Author: shingogo@hotmail.co.jp
File Name: examples/semantic_segmentation/eval_semantic_segmentation_multi.py
Class Name:
Method Name: main


Project Name: deepfakes/faceswap
Commit Name: 2bcb7d572ac8fdacceb56d5cbd5b05fad8c71e5e
Time: 2021-03-23
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/sort/sort.py
Class Name: Sort
Method Name: sort_hist_dissim


Project Name: deepfakes/faceswap
Commit Name: 2bcb7d572ac8fdacceb56d5cbd5b05fad8c71e5e
Time: 2021-03-23
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/sort/sort.py
Class Name: Sort
Method Name: sort_blur


Project Name: dgasmith/opt_einsum
Commit Name: 265614193fce8dfc8aec34be3539d9b068f5b259
Time: 2018-08-18
Author: fritzo@uber.com
File Name: opt_einsum/parser.py
Class Name:
Method Name: convert_to_valid_einsum_chars