import argparse
from cocojson.tools import pred_only


def main():
    ap = argparse.ArgumentParser()
    ap.add_argument('json', help='Path to coco json')
    ap.add_argument('--score', help=
        'Prediction score to be added to all annotations (defaults to None, aka not added).'
        , type=float)
    args = ap.parse_args()
    pred_only(args.json, add_score=args.score)


if __name__ == '__main__':
    main()

2fbafb4dda85a7c7e3d5f62d941dc658e0713d03
<mask token>

<mask token>


def main():
    ap = argparse.ArgumentParser()
    ap.add_argument('json', help='Path to coco json')
    ap.add_argument('--score', help=
        'Prediction score to be added to all annotations (defaults to None, aka not added).'
        , type=float)
    args = ap.parse_args()
    pred_only(args.json, add_score=args.score)


<mask token>

<mask token>


def main():
    ap = argparse.ArgumentParser()
    ap.add_argument('json', help='Path to coco json')
    ap.add_argument('--score', help=
        'Prediction score to be added to all annotations (defaults to None, aka not added).'
        , type=float)
    args = ap.parse_args()
    pred_only(args.json, add_score=args.score)


if __name__ == '__main__':
    main()

import argparse
from cocojson.tools import pred_only


def main():
    ap = argparse.ArgumentParser()
    ap.add_argument('json', help='Path to coco json')
    ap.add_argument('--score', help=
        'Prediction score to be added to all annotations (defaults to None, aka not added).'
        , type=float)
    args = ap.parse_args()
    pred_only(args.json, add_score=args.score)


if __name__ == '__main__':
    main()
