a8b94863d2178d84b7e6c66eae38d0964eeca165,examples/instance_segmentation/labelme2coco.py,,main,#,25

Before Change


        out_img_file = osp.join(args.output_dir, "JPEGImages", base + ".jpg")

        img = labelme.utils.img_data_to_arr(label_file.imageData)
        PIL.Image.fromarray(img).convert("RGB").save(out_img_file)
        data["images"].append(
            dict(
                license=0,
                url=None,

After Change


            )

        if not args.noviz:
            labels, captions, masks = zip(
                *[
                    (class_name_to_id[cnm], cnm, msk)
                    for (cnm, gid), msk in masks.items()
                    if cnm in class_name_to_id
                ]
            )
            viz = imgviz.instances2rgb(
                image=img,
                labels=labels,
                masks=masks,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: wkentaro/labelme
Commit Name: a8b94863d2178d84b7e6c66eae38d0964eeca165
Time: 2020-07-13
Author: www.kentaro.wada@gmail.com
File Name: examples/instance_segmentation/labelme2coco.py
Class Name:
Method Name: main


Project Name: facebookresearch/pytext
Commit Name: ec54a0b75d93cab5ad407920f2bbfd2f33251cc9
Time: 2019-01-18
Author: zsc@fb.com
File Name: pytext/trainers/trainer.py
Class Name: Trainer
Method Name: train


Project Name: NervanaSystems/nlp-architect
Commit Name: 838473cfb15599030b0e777b9a9901e22409a9b1
Time: 2018-07-11
Author: peter.izsak@intel.com
File Name: nlp_architect/models/chunker.py
Class Name: SequenceChunker
Method Name: save